diff options
author | fanquake <fanquake@gmail.com> | 2024-01-11 15:32:10 +0000 |
---|---|---|
committer | fanquake <fanquake@gmail.com> | 2024-01-16 09:53:27 +0000 |
commit | cbc9bf11fe84deb96daf9b97a8e7499979360db2 (patch) | |
tree | a22cb3b33d6526acded3c4629d1229f60a882bf2 | |
parent | 42b2283765e28003ba58cf2043870d1e5df5dfe0 (diff) |
build: move -mlinker-version to *FLAGS
This doesn't need to exist in C & CXX.
-rw-r--r-- | depends/hosts/darwin.mk | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/depends/hosts/darwin.mk b/depends/hosts/darwin.mk index 69986a0ab4..b94ac7d56f 100644 --- a/depends/hosts/darwin.mk +++ b/depends/hosts/darwin.mk @@ -80,7 +80,7 @@ darwin_CC=env -u C_INCLUDE_PATH -u CPLUS_INCLUDE_PATH \ -u OBJC_INCLUDE_PATH -u OBJCPLUS_INCLUDE_PATH -u CPATH \ -u LIBRARY_PATH \ $(clang_prog) --target=$(host) \ - -B$(build_prefix)/bin -mlinker-version=$(LD64_VERSION) \ + -B$(build_prefix)/bin \ -isysroot$(OSX_SDK) -nostdlibinc \ -iwithsysroot/usr/include -iframeworkwithsysroot/System/Library/Frameworks @@ -88,7 +88,7 @@ darwin_CXX=env -u C_INCLUDE_PATH -u CPLUS_INCLUDE_PATH \ -u OBJC_INCLUDE_PATH -u OBJCPLUS_INCLUDE_PATH -u CPATH \ -u LIBRARY_PATH \ $(clangxx_prog) --target=$(host) \ - -B$(build_prefix)/bin -mlinker-version=$(LD64_VERSION) \ + -B$(build_prefix)/bin \ -isysroot$(OSX_SDK) -nostdlibinc \ -iwithsysroot/usr/include/c++/v1 \ -iwithsysroot/usr/include -iframeworkwithsysroot/System/Library/Frameworks @@ -97,6 +97,11 @@ darwin_CFLAGS=-pipe -std=$(C_STANDARD) -mmacosx-version-min=$(OSX_MIN_VERSION) darwin_CXXFLAGS=-pipe -std=$(CXX_STANDARD) -mmacosx-version-min=$(OSX_MIN_VERSION) darwin_LDFLAGS=-Wl,-platform_version,macos,$(OSX_MIN_VERSION),$(OSX_SDK_VERSION) +ifneq ($(build_os),darwin) +darwin_CFLAGS += -mlinker-version=$(LD64_VERSION) +darwin_CXXFLAGS += -mlinker-version=$(LD64_VERSION) +endif + darwin_release_CFLAGS=-O2 darwin_release_CXXFLAGS=$(darwin_release_CFLAGS) |