aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authork-m_schindler <k-m_schindler@b956fd51-792f-4845-bead-9b4dfca2ff2c>2009-04-26 21:46:27 +0000
committerk-m_schindler <k-m_schindler@b956fd51-792f-4845-bead-9b4dfca2ff2c>2009-04-26 21:46:27 +0000
commit02042180076cde5f6dd37a685eb1df5069fcb262 (patch)
tree3000e04dd1d3007d016c1225eebf7324ed70e3d9 /plugins
parentb551fcdcdd11c178e224caf5c2c3c33c7a2cf4ad (diff)
downloadusdx-02042180076cde5f6dd37a685eb1df5069fcb262.tar.gz
usdx-02042180076cde5f6dd37a685eb1df5069fcb262.tar.xz
usdx-02042180076cde5f6dd37a685eb1df5069fcb262.zip
fixing linux linker error (-r -shared) with SDL. Pass -k "-U _SDL_main" only for macosx
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@1701 b956fd51-792f-4845-bead-9b4dfca2ff2c
Diffstat (limited to 'plugins')
-rw-r--r--plugins/Makefile.in8
1 files changed, 6 insertions, 2 deletions
diff --git a/plugins/Makefile.in b/plugins/Makefile.in
index 98ab9e06..efa2e511 100644
--- a/plugins/Makefile.in
+++ b/plugins/Makefile.in
@@ -38,7 +38,7 @@ PPLATFORM := @FPC_PLATFORM@
PPROCESSOR := @FPC_PROCESSOR@
# Directories added to the unit path
-PUNIT_FLAGS := -FE../game/plugins -FU../build/fpc-$(PPROCESSOR)-$(PPLATFORM) -Fu../build/fpc-$(PPROCESSOR)-$(PPLATFORM)
+PUNIT_FLAGS := -FE../game/plugins -Fu../build/fpc-$(PPROCESSOR)-$(PPLATFORM)
# Directory where compiled units (.ppu, .o and library files) are stored
PCUNIT_DIR := $(USDX_BUILD_DIR)/fpc-$(PPROCESSOR)-$(PPLATFORM)
@@ -49,7 +49,11 @@ PINC_FLAGS := -Fi$(USDX_LIB_DIR)/JEDI-SDL/SDL/Pas
# Flags for the treatment of a linker issue with SDL.
# Symbol _SDK_main is undefined
-PFLAGS_SDL := -k-U -k_SDL_main
+FPC_PLATFORM = @FPC_PLATFORM@
+PFLAGS_SDL :=
+ifeq ($(FPC_PLATFORM), darwin)
+PFLAGS_SDL += -k"-U _SDL_main"
+endif
##
# PFLAGS