mirror of
https://git.freebsd.org/ports.git
synced 2025-06-10 07:10:32 -04:00
to `__sync_xxx'" build errors reported by many people who have CPUTYPE set to i686 and similar values in /etc/make.conf. The problem itself is related to the fact that asterisk used FreeBSD CFLAGS when probing for gcc capabilities during configure phase, while its own CFLAGS during actual build. As a result, object code generated by gcc missed those functions.
21 lines
403 B
Text
21 lines
403 B
Text
|
|
$FreeBSD$
|
|
|
|
--- Makefile.rules
|
|
+++ Makefile.rules
|
|
@@ -27,6 +27,7 @@
|
|
CMD_PREFIX=
|
|
endif
|
|
|
|
+ifneq ($(OSARCH),FreeBSD)
|
|
ifeq ($(findstring DONT_OPTIMIZE,$(MENUSELECT_CFLAGS)),)
|
|
# More GSM codec optimization
|
|
# Uncomment to enable MMXTM optimizations for x86 architecture CPU's
|
|
@@ -37,6 +38,7 @@
|
|
OPTIMIZE?=-O6
|
|
ASTCFLAGS+=$(OPTIMIZE)
|
|
endif
|
|
+endif
|
|
|
|
%.o: %.c
|
|
$(ECHO_PREFIX) echo " [CC] $< -> $@"
|