mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 07:30:19 +00:00
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.
This commit is contained in:
parent
7004fab643
commit
a2f919c760
Notes:
sideshowbarker
2024-07-18 18:33:45 +09:00
Author: https://github.com/gunnarbeutner Commit: https://github.com/SerenityOS/serenity/commit/a2f919c7602 Pull-request: https://github.com/SerenityOS/serenity/pull/6931
1 changed files with 4 additions and 4 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue