Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/libexec/httpd also set -D_DEFAULT_SOURCE to open up more hea...



details:   https://anonhg.NetBSD.org/src/rev/008ed25ea519
branches:  trunk
changeset: 949792:008ed25ea519
user:      mrg <mrg%NetBSD.org@localhost>
date:      Sun Jan 17 00:15:14 2021 +0000

description:
also set -D_DEFAULT_SOURCE to open up more headers.
allow passing $(EXTRALIBS).

diffstat:

 libexec/httpd/Makefile.boot |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r 7988f72688a4 -r 008ed25ea519 libexec/httpd/Makefile.boot
--- a/libexec/httpd/Makefile.boot       Sun Jan 17 00:13:49 2021 +0000
+++ b/libexec/httpd/Makefile.boot       Sun Jan 17 00:15:14 2021 +0000
@@ -6,18 +6,20 @@
 CC=    cc
 OPT=   -O
 LARGE_CFLAGS=  -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
-LOCAL_CFLAGS=  -DNO_LUA_SUPPORT -DNO_BLOCKLIST_SUPPORT -D_GNU_SOURCE
+LOCAL_CFLAGS=  -DNO_LUA_SUPPORT -DNO_BLOCKLIST_SUPPORT -D_GNU_SOURCE -D_DEFAULT_SOURCE
 CFLAGS=        $(OPT) $(LARGE_CFLAGS) $(LOCAL_CFLAGS)
 
 GROFF= groff -Tascii
 CRYPTOLIBDIR=  # -L/usr/local/lib
 CRYPTOLIBS=    $(CRYPTOLIBDIR) -lcrypto -lssl
 
+LIBS=  $(CRYPTOLIBS) $(EXTRALIBS)
+
 FILES= bozohttpd.c auth-bozo.c cgi-bozo.c content-bozo.c daemon-bozo.c \
        dir-index-bozo.c lua-bozo.c ssl-bozo.c tilde-luzah-bozo.c main.c
 
 all:
-       $(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -o bozohttpd $(FILES) $(CRYPTOLIBS)
+       $(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -o bozohttpd $(FILES) $(LIBS)
 
 man:
        $(GROFF) -mandoc bozohttpd.8 > bozohttpd.cat8



Home | Main Index | Thread Index | Old Index