From 9d72b9225ce9b766f4273d1cb74434676fb26498 Mon Sep 17 00:00:00 2001 From: Jerome St-Louis Date: Wed, 7 Nov 2012 10:29:15 -0500 Subject: [PATCH] sdk;ide: Fix for compiler libraries not working - Adding LDFLAGS to OFLAGS in compiler.cf rather than crossplatform.mk --- crossplatform.mk | 1 - default.cf | 2 ++ ide/src/project/Project.ec | 2 ++ 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/crossplatform.mk b/crossplatform.mk index baa7453..86bd72f 100755 --- a/crossplatform.mk +++ b/crossplatform.mk @@ -196,7 +196,6 @@ _L = $(if $(filter $(1),$(EXCLUDED_LIBS)),,-l$(1)) # DEBIAN ifdef DEBIAN_PACKAGE -OFLAGS += $(LDFLAGS) CFLAGS += $(CPPFLAGS) endif diff --git a/default.cf b/default.cf index 7920a6e..c077f36 100644 --- a/default.cf +++ b/default.cf @@ -30,6 +30,8 @@ endif LDFLAGS +=$(if $(LINUX_TARGET), -Wl$(comma)--no-undefined,) LDFLAGS +=$(if $(OSX_TARGET), -framework cocoa -framework OpenGL,) +OFLAGS += $(LDFLAGS) + # FLAGS UPXFLAGS = -9 -q diff --git a/ide/src/project/Project.ec b/ide/src/project/Project.ec index 9b669d2..9fdfb87 100755 --- a/ide/src/project/Project.ec +++ b/ide/src/project/Project.ec @@ -2125,6 +2125,8 @@ private: f.Printf("\nFORCE_64_BIT := %s", compiler.supportsBitDepth ? "-m64" : ""); f.Printf("\nFORCE_32_BIT := %s", compiler.supportsBitDepth ? "-m32" : ""); f.Puts("\n"); + f.Puts("\nOFLAGS += $(LDFLAGS)"); + f.Puts("\n"); delete f; -- 1.8.3.1