slang-devel mailing list

[2021 Date Index] [2021 Thread Index] [Other years]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]

[slang-devel] Re: Honoring compilation env vars in slsqlite


The subject of my previous message should read “Honoring compilation env vars in slsqlite” instead of “[…] in slwildcard”.

* Rafael Laboissière <rafael@xxxxxxxxxx> [2021-11-21 08:08]:

Hello,

When building slsqlite for Debian, we should ensure that the environment variable CPPFLAGS, and LDFLAGS are 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.

Best,

Rafael Laboissière

[*] https://wiki.debian.org/Hardening

Description: Honor the environment variables 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-19

--- slwildcard-0.5.0.orig/Makefile +++ slwildcard-0.5.0/Makefile @@ -41,7 +41,7 @@ INCS = $(SLANG_INC) all: wildcard-module.so

wildcard-module.so: wildcard.c - $(CC_SHARED) $(INCS) wildcard.c -o wildcard-module.so $(LIBS) + $(CC_SHARED) $(CPPFLAGS) $(INCS) $(LDFLAGS) wildcard.c -o wildcard-module.so $(LIBS)

wildcard.o: wildcard.c gcc $(CFLAGS) $(INCS) -O2 -c -g wildcard.c -o wildcard.o
_______________________________________________
For list information, visit <http://jedsoft.org/slang/mailinglists.html>.


[2021 date index] [2021 thread index]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]