diff options
author | Gunnar Beutner <gbeutner@serenityos.org> | 2021-05-08 01:18:36 +0200 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2021-05-08 00:30:30 +0100 |
commit | a2f919c76024116378ba3792e40cc171d2695a83 (patch) | |
tree | a8f1c7f40e59664678b7aeaa6bc9782bb5733fe8 /Ports/SDL2-GNUBoy | |
parent | 7004fab643bb79ad6d0d2b1d2aab1ff406916d72 (diff) | |
download | serenity-a2f919c76024116378ba3792e40cc171d2695a83.zip |
Ports: SDL2-GNUBoy shouldn't try to link against host libs
Without this patch I'm unable to build this port because it tries
to link against my host's libgcc_s.so.
Diffstat (limited to 'Ports/SDL2-GNUBoy')
-rw-r--r-- | Ports/SDL2-GNUBoy/patches/fix-make.patch | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Ports/SDL2-GNUBoy/patches/fix-make.patch b/Ports/SDL2-GNUBoy/patches/fix-make.patch index 41486e516d..3aab9c9099 100644 --- a/Ports/SDL2-GNUBoy/patches/fix-make.patch +++ b/Ports/SDL2-GNUBoy/patches/fix-make.patch @@ -22,7 +22,7 @@ index 427d696..653a5d3 100644 - make -f makefile.windows - rm -f sys/*/*.o src/*.o +CFLAGS = -std=c99 -Wall -O3 -I./include -+LDFLAGS = $(CFLAGS) -s `sdl2-config --cflags --libs` ++LDFLAGS = $(CFLAGS) -s -lSDL2 +ASFLAGS = $(CFLAGS) -.PHONY: osx @@ -33,11 +33,11 @@ index 427d696..653a5d3 100644 + +SYS_DEFS = -DIS_LITTLE_ENDIAN -DIS_LINUX -DSOUND +SYS_OBJS = sys/nix/nix.o -+SYS_INCS = -I/usr/local/include -I./sys/nix ++SYS_INCS = -I./sys/nix + +SDL_OBJS = sys/sdl2/sdl-video.o sys/sdl2/sdl-audio.o sys/sdl2/sdl-input.o -+SDL_LIBS = -L/usr/lib -lSDL2 -lpthread -+SDL_CFLAGS = -I/usr/include/SDL2 -D_GNU_SOURCE=1 -D_REENTRANT `sdl2-config --cflags --libs` ++SDL_LIBS = -lSDL2 -lpthread ++SDL_CFLAGS = -D_GNU_SOURCE=1 -D_REENTRANT `sdl2-config --cflags --libs` + + +all: $(TARGETS) |