sdk;ide: Fix for compiler libraries not working
authorJerome St-Louis <jerome@ecere.com>
Wed, 7 Nov 2012 15:29:15 +0000 (10:29 -0500)
committerJerome St-Louis <jerome@ecere.com>
Wed, 7 Nov 2012 15:29:15 +0000 (10:29 -0500)
- Adding LDFLAGS to OFLAGS in compiler.cf rather than crossplatform.mk

crossplatform.mk
default.cf
ide/src/project/Project.ec

index baa7453..86bd72f 100755 (executable)
@@ -196,7 +196,6 @@ _L = $(if $(filter $(1),$(EXCLUDED_LIBS)),,-l$(1))
 
 # DEBIAN
 ifdef DEBIAN_PACKAGE
-OFLAGS += $(LDFLAGS)
 CFLAGS += $(CPPFLAGS)
 endif
 
index 7920a6e..c077f36 100644 (file)
@@ -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
index 9b669d2..9fdfb87 100755 (executable)
@@ -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;