mirror of
https://github.com/SerenityOS/serenity
synced 2024-10-15 04:13:11 +00:00
Ports/nesalizer: Add SDL2 header include path to Makefile
Previously, we were relying on the host's SDL2 headers. If none were present the build would fail.
This commit is contained in:
parent
ddbe6bd7b4
commit
87bf5045e4
|
@ -5,12 +5,13 @@ Subject: [PATCH] Add Serenity to Makefile
|
||||||
|
|
||||||
- Add `-lSDL2 -lgui -lipc -lgfx -lcore -lpthread -lregex`
|
- Add `-lSDL2 -lgui -lipc -lgfx -lcore -lpthread -lregex`
|
||||||
- Disable RTTI
|
- Disable RTTI
|
||||||
|
- Add SDL2 include path to compile flags
|
||||||
---
|
---
|
||||||
Makefile | 6 +++---
|
Makefile | 8 ++++----
|
||||||
1 file changed, 3 insertions(+), 3 deletions(-)
|
1 file changed, 4 insertions(+), 4 deletions(-)
|
||||||
|
|
||||||
diff --git a/Makefile b/Makefile
|
diff --git a/Makefile b/Makefile
|
||||||
index 527a3d0..fa1b849 100644
|
index 527a3d08998163dadcd6a8d48c93a2906e19c31c..37fbb516e1c1f57daf911f373cb801585a3b2549 100644
|
||||||
--- a/Makefile
|
--- a/Makefile
|
||||||
+++ b/Makefile
|
+++ b/Makefile
|
||||||
@@ -58,7 +58,7 @@ c_objects = $(addprefix $(BUILD_DIR)/,$(c_sources:=.o))
|
@@ -58,7 +58,7 @@ c_objects = $(addprefix $(BUILD_DIR)/,$(c_sources:=.o))
|
||||||
|
@ -37,3 +38,12 @@ index 527a3d0..fa1b849 100644
|
||||||
link_flags += $(optimizations) -fuse-linker-plugin
|
link_flags += $(optimizations) -fuse-linker-plugin
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
@@ -133,7 +133,7 @@ endif
|
||||||
|
|
||||||
|
# _FILE_OFFSET_BITS=64 gives nicer errors for large files (even though we don't
|
||||||
|
# support them on 32-bit systems)
|
||||||
|
-compile_flags += $(warnings) -D_FILE_OFFSET_BITS=64 $(shell sdl2-config --cflags)
|
||||||
|
+compile_flags += $(warnings) -D_FILE_OFFSET_BITS=64 -I$(SERENITY_INSTALL_ROOT)/usr/local/include/SDL2
|
||||||
|
|
||||||
|
#
|
||||||
|
# Targets
|
||||||
|
|
|
@ -6,6 +6,7 @@ Add Serenity to Makefile
|
||||||
|
|
||||||
- Add `-lSDL2 -lgui -lipc -lgfx -lcore -lpthread -lregex`
|
- Add `-lSDL2 -lgui -lipc -lgfx -lcore -lpthread -lregex`
|
||||||
- Disable RTTI
|
- Disable RTTI
|
||||||
|
- Add SDL2 include path to compile flags
|
||||||
|
|
||||||
## `0002-Disable-backtracing.patch`
|
## `0002-Disable-backtracing.patch`
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue