- Adding LDFLAGS to OFLAGS in compiler.cf rather than crossplatform.mk
# DEBIAN
ifdef DEBIAN_PACKAGE
-OFLAGS += $(LDFLAGS)
CFLAGS += $(CPPFLAGS)
endif
LDFLAGS +=$(if $(LINUX_TARGET), -Wl$(comma)--no-undefined,)
LDFLAGS +=$(if $(OSX_TARGET), -framework cocoa -framework OpenGL,)
+OFLAGS += $(LDFLAGS)
+
# FLAGS
UPXFLAGS = -9 -q
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;