Module: kamailio
Branch: master
Commit: ab67d11064f71ad4d3661edaa533d30b023fad7a
URL:
https://github.com/kamailio/kamailio/commit/ab67d11064f71ad4d3661edaa533d30…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2023-04-14T11:43:40+02:00
Makefile.defs: do not set -O2 flag for darwin linker
---
Modified: src/Makefile.defs
---
Diff:
https://github.com/kamailio/kamailio/commit/ab67d11064f71ad4d3661edaa533d30…
Patch:
https://github.com/kamailio/kamailio/commit/ab67d11064f71ad4d3661edaa533d30…
---
diff --git a/src/Makefile.defs b/src/Makefile.defs
index 675f2cf5bb2..869cf3d2520 100644
--- a/src/Makefile.defs
+++ b/src/Makefile.defs
@@ -1741,7 +1741,11 @@ endif
# -andrei
ifeq ($(CC_NAME), clang)
+ifeq ($(OS), darwin)
+ LDFLAGS+=-Wl,-E $(PROFILE)
+else
LDFLAGS+=-Wl,-O2 -Wl,-E $(PROFILE)
+endif
MOD_LDFLAGS:=-shared $(LDFLAGS)
LIB_LDFLAGS:=-shared $(LDFLAGS)
LIB_SONAME=-Wl,-soname,