Skip to content

Commit

Permalink
add linker option -rpath for macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
sneakywumpus committed Jan 8, 2025
1 parent 793815a commit 57e4c25
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions altairsim/srcsim/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ 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_LDLIBS = -framework SDL2
endif
else
Expand Down
1 change: 1 addition & 0 deletions cromemcosim/srcsim/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ 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_LDLIBS = -framework SDL2
endif
else
Expand Down
1 change: 1 addition & 0 deletions imsaisim/srcsim/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ 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_LDLIBS = -framework SDL2
endif
else
Expand Down
1 change: 1 addition & 0 deletions intelmdssim/srcsim/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ 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_LDLIBS = -framework SDL2
endif
else
Expand Down

0 comments on commit 57e4c25

Please sign in to comment.