- Subject: Re: [slang-devel] Honoring compilation env vars in slpvm
- From: Rafael Laboissière <rafael@xxxxxxxxxx>
- Date: Mon, 15 Nov 2021 17:30:54 +0100
Erratum: The subject of my previous message was obviously wrong. Instead of
"slcfitsio", one should read "slpvm".
Rafael
* Rafael Laboissière <rafael@xxxxxxxxxx> [2021-11-15 16:44]:
Hello,
When building slpvm for Debian, we should ensure that the environment
variable CFLAGS, CPPFLAGS, and LDFLAGS will be honored. This is
required in Debian, because the hardening flags [*]
-D_FORTIFY_SOURCE=2 and -Wl,-z,relro must be used in the compilation
and linking of C files.
The file attached to this message is being currently used in Debian.
Please, consider applying it (or a variation of it) for the next
release.
Best,
Rafael Laboissière
[*] https://wiki.debian.org/Hardening
Description: Honor the environment variable CPPFLAGS and LDFLAGS
This is required in Debian, such that hardening flags like
-D_FORTIFY_SOURCE=2 and -Wl,-z,relro are used in the compilation
and linking of C files.
Author: Rafael Laboissière <rafael@xxxxxxxxxx>
Forwarded: no
Last-Update: 2021-11-15
--- slpvm-0.1.5.orig/src/Makefile.in
+++ slpvm-0.1.5/src/Makefile.in
@@ -61,7 +61,7 @@ all: $(MODULES)
# Put Rules to create the modules here
#---------------------------------------------------------------------------
pvm-module.so: pvm-module.c
- $(CC_SHARED) $(INCS) pvm-module.c -o pvm-module.so $(LIBS)
+ $(CC_SHARED) $(CPPFLAGS) $(INCS) $(LDFLAGS) pvm-module.c -o pvm-module.so $(LIBS)
#---------------------------------------------------------------------------
# Regression tests
#---------------------------------------------------------------------------
_______________________________________________
For list information, visit <http://jedsoft.org/slang/mailinglists.html>.
[2021 date index]
[2021 thread index]
[Thread Prev] [Thread Next]
[Date Prev] [Date Next]