fix to build SDL 1.2.15 under OS X 10.4

This commit is contained in:
Thomas BERNARD 2019-01-27 21:16:34 +01:00 committed by Thomas Bernard
parent 61d7803cd8
commit 30531bf96a
No known key found for this signature in database
GPG Key ID: 0FF11B67A5C0863C

8
3rdparty/Makefile vendored
View File

@ -290,11 +290,15 @@ $(PREFIX)/lib/libSDLmain.a: archives/$(SDLDEVEL)
else
SDLDISABLE = --disable-joystick --disable-audio
ifeq ($(PLATFORM), Darwin)
SDLDISABLE += --disable-video-x11
SDLDISABLE += --without-x
# the following trick was stolen from macports
ifeq ($(shell if [ "`uname -r | cut -f1 -d. `" = "8" ] && [ "`sysctl -n hw.vectorunit`" = "1" ] ; then echo "true" ; fi ), true)
SDLCFLAGS += -faltivec
endif
endif
$(PREFIX)/lib/libSDLmain.a: $(SDL)/.ok
cd $(SDL) && ./configure --host=$(HOST) --prefix=$(PREFIX) \
cd $(SDL) && CFLAGS=$(SDLCFLAGS) ./configure --host=$(HOST) --prefix=$(PREFIX) \
$(SDLDISABLE)
cd $(SDL) && $(MAKE)
cd $(SDL) && $(MAKE) install