mirror of
https://git.freebsd.org/ports.git
synced 2025-05-19 10:33:12 -04:00
Don't use Clang if we need to use GCC PR: 251030 Approved by: yuri (maintainer timeout) MFH: 2020Q4 (fix build blanket)
25 lines
572 B
Text
25 lines
572 B
Text
--- Makefile.orig 2019-09-18 18:34:20 UTC
|
|
+++ Makefile
|
|
@@ -25,6 +25,9 @@
|
|
ifeq ($(shell uname -s),Darwin)
|
|
CONFIG_DARWIN=y
|
|
endif
|
|
+ifeq ($(shell uname -s),FreeBSD)
|
|
+CONFIG_FREEBSD=y
|
|
+endif
|
|
# Windows cross compilation from Linux
|
|
#CONFIG_WIN32=y
|
|
# use link time optimization (smaller and faster executables but slower build)
|
|
@@ -38,6 +41,12 @@ ifdef CONFIG_DARWIN
|
|
# use clang instead of gcc
|
|
CONFIG_CLANG=y
|
|
CONFIG_DEFAULT_AR=y
|
|
+endif
|
|
+ifdef CONFIG_FREEBSD
|
|
+# use clang instead of gcc
|
|
+CONFIG_CLANG=y
|
|
+CONFIG_DEFAULT_AR=y
|
|
+CONFIG_LTO=
|
|
endif
|
|
|
|
# installation directory
|