diff --git a/Makefile b/Makefile index 03f44cb..35613a5 100644 --- a/Makefile +++ b/Makefile @@ -55,16 +55,9 @@ $(BUILD_DIR)/hello-macosx.bin: Test.cpp $$(@D)/ @echo "Building MacOSX binary..." - ls -la /usr/lib/llvm-13/lib || true - ls -la /usr/lib/llvm-14/lib || true ls -la /usr/lib/llvm-10/lib || true - which -a clang++-10 || true - sudo update-alternatives --install /usr/bin/clang clang `which clang-10` 20 || true - sudo update-alternatives --install /usr/bin/clang++ clang++ `which clang++-10` 20 || true - sudo update-alternatives --set clang `which clang-10` || true - sudo update-alternatives --set clang++ `which clang++-10` || true - clang++ -v || true - $(MACOSX_CXX) $< -o $@ -v || true + $(MACOSX_CXX) $< -o $@ -v -W,-lto_library,/usr/lib/llvm-10/lib/libLTO.so || true + $(MACOSX_CXX) $< -o $@ -v -W,lto_library,/usr/lib/llvm-10/lib/libLTO.so || true $(MACOSX_CXX) $< -o $@ -v -O0 || true $(MACOSX_CXX) $< -o $@ -v -fno-lto -L/usr/lib/llvm-13/lib