Skip to content

Commit

Permalink
add more linker options for macOS
Browse files Browse the repository at this point in the history
These are what cmake uses when generating for macOS.
  • Loading branch information
sneakywumpus committed Jan 8, 2025
1 parent 57e4c25 commit a073ef2
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
3 changes: 2 additions & 1 deletion altairsim/srcsim/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@ PLAT_INCS = -I/usr/include/SDL2
PLAT_LDLIBS = -lSDL2 -lSDL2main
else ifeq ($(TARGET_OS),OSX)
PLAT_INCS = -F/Library/Frameworks -I/Library/Frameworks/SDL2.framework/Headers
PLAT_LDFLAGS = -Wl,-rpath,/Library/Frameworks
PLAT_LDFLAGS = -Wl,-search_paths_first -Wl,-headerpad_max_install_names \
-Wl,-rpath,/Library/Frameworks
PLAT_LDLIBS = -framework SDL2
endif
else
Expand Down
3 changes: 2 additions & 1 deletion cromemcosim/srcsim/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,8 @@ PLAT_INCS = -I/usr/include/SDL2
PLAT_LDLIBS = -lSDL2 -lSDL2main
else ifeq ($(TARGET_OS),OSX)
PLAT_INCS = -F/Library/Frameworks -I/Library/Frameworks/SDL2.framework/Headers
PLAT_LDFLAGS = -Wl,-rpath,/Library/Frameworks
PLAT_LDFLAGS = -Wl,-search_paths_first -Wl,-headerpad_max_install_names \
-Wl,-rpath,/Library/Frameworks
PLAT_LDLIBS = -framework SDL2
endif
else
Expand Down
3 changes: 2 additions & 1 deletion imsaisim/srcsim/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@ PLAT_INCS = -I/usr/include/SDL2
PLAT_LDLIBS = -lSDL2 -lSDL2main
else ifeq ($(TARGET_OS),OSX)
PLAT_INCS = -F/Library/Frameworks -I/Library/Frameworks/SDL2.framework/Headers
PLAT_LDFLAGS = -Wl,-rpath,/Library/Frameworks
PLAT_LDFLAGS = -Wl,-search_paths_first -Wl,-headerpad_max_install_names \
-Wl,-rpath,/Library/Frameworks
PLAT_LDLIBS = -framework SDL2
endif
else
Expand Down
3 changes: 2 additions & 1 deletion intelmdssim/srcsim/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@ PLAT_INCS = -I/usr/include/SDL2
PLAT_LDLIBS = -lSDL2 -lSDL2main
else ifeq ($(TARGET_OS),OSX)
PLAT_INCS = -F/Library/Frameworks -I/Library/Frameworks/SDL2.framework/Headers
PLAT_LDFLAGS = -Wl,-rpath,/Library/Frameworks
PLAT_LDFLAGS = -Wl,-search_paths_first -Wl,-headerpad_max_install_names \
-Wl,-rpath,/Library/Frameworks
PLAT_LDLIBS = -framework SDL2
endif
else
Expand Down

0 comments on commit a073ef2

Please sign in to comment.