Skip to content

Commit

Permalink
linux: add -Wl,--no-undefined shared object link flag
Browse files Browse the repository at this point in the history
Helps to avoid stupid situation where something was referenced
but wasn't added in the build.
  • Loading branch information
a1batross committed Aug 30, 2024
1 parent b028cf2 commit 5ef248b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions linux/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,9 @@ endif
SHLIBEXT=so
SHLIBCFLAGS=
ifeq "$(CFG)" "release"
SHLIBLDFLAGS="-shared -Wl,-Map,$@_map.txt"
SHLIBLDFLAGS="-shared -Wl,-Map,$@_map.txt -Wl,--no-undefined"
else
SHLIBLDFLAGS="-shared -gdwarf-2 -g2 -Wl,-Map,$@_map.txt"
SHLIBLDFLAGS="-shared -gdwarf-2 -g2 -Wl,-Map,$@_map.txt -Wl,--no-undefined"
endif

AR=ar
Expand Down

0 comments on commit 5ef248b

Please sign in to comment.