From 02042180076cde5f6dd37a685eb1df5069fcb262 Mon Sep 17 00:00:00 2001 From: k-m_schindler Date: Sun, 26 Apr 2009 21:46:27 +0000 Subject: 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 --- plugins/Makefile.in | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'plugins') 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 -- cgit v1.2.3