From e78c63276c50638729c8b8cbfba48728538350fc Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Sat, 31 May 2008 17:12:18 +0200 Subject: [PATCH] Makefile: Disallow undefined symbols. --- Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 4e8b48e..38af988 100644 --- a/Makefile +++ b/Makefile @@ -33,6 +33,9 @@ ifeq ($(uname_s),NetBSD) endif all: $(dso_filename) +# disallow undefined symbols +LDFLAGS += -Wl,-z,defs + DEBUG_CPPFLAGS += -Wno-sign-compare -g -Wunused -Wundef -W DEBUG_CPPFLAGS += -Wredundant-decls #CPPFLAGS += -Os @@ -55,7 +58,7 @@ Makefile.deps: $(wildcard *.c *.h) %.o: %.c Makefile $(CC) -c $(CPPFLAGS) $(DEBUG_CPPFLAGS) $< $(dso_filename): $(objects) - $(CC) $(dso_opts) -o $@ $(objects) -lcrypto + $(CC) $(dso_opts) -o $@ $(objects) $(LDFLAGS) -lcrypto osl_errors.h: errlist sed -e 's/\([A-Z_]*\) .*/ E_OSL_\1/' \ -- 2.39.2