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
%.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/' \