X-Git-Url: http://git.tuebingen.mpg.de/?a=blobdiff_plain;f=Makefile;h=38af988b70655f2c48c866c7d36d013b5fa436af;hb=e78c63276c50638729c8b8cbfba48728538350fc;hp=4e8b48e8aedfc673f7c97a2566b0909272c5dad8;hpb=f57b24f2f5b6d8ce5ca0d5ad67b5c086695d8eb2;p=osl.git 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/' \