From c46627f8e16a53515f9b20405a78b8fe33ed25f1 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Wed, 22 Apr 2015 18:24:16 -0400 Subject: [PATCH] Added linker flags to ban undefined extern functions. --- new/GNUmakefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/new/GNUmakefile b/new/GNUmakefile index acb8e962..38631819 100644 --- a/new/GNUmakefile +++ b/new/GNUmakefile @@ -29,7 +29,10 @@ baseCFILES = \ baseMFILES = $(osMFILES) baseCFLAGS = $(osCFLAGS) -baseLDFLAGS = -shared $(osLDFLAGS) +baseLDFLAGS = \ + -shared \ + -Wl,--no-undefined -Wl,--no-allow-shlib-undefined \ + $(osLDFLAGS) baseSUFFIX = $(osLIBSUFFIX) include GNUbase.mk