diff options
author | Maxim Sobolev <sobomax@FreeBSD.org> | 2008-08-17 08:28:29 +0000 |
---|---|---|
committer | Maxim Sobolev <sobomax@FreeBSD.org> | 2008-08-17 08:28:29 +0000 |
commit | fd711cd5429724ef427353a79bea7929d2ff75b0 (patch) | |
tree | 51c83cb4139f23ee657dbe68a3165c981f1aeffb /net/asterisk10/files/patch-Makefile.rules | |
parent | Remove support for GCC 2.7 (the lang/gcc27 port) which, as it turns out, (diff) |
Make asterisk respect CFLAGS. This should fix numerous "undefined reference
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.
Notes
Notes:
svn path=/head/; revision=218717
Diffstat (limited to 'net/asterisk10/files/patch-Makefile.rules')
-rw-r--r-- | net/asterisk10/files/patch-Makefile.rules | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/net/asterisk10/files/patch-Makefile.rules b/net/asterisk10/files/patch-Makefile.rules new file mode 100644 index 000000000000..d129d9784b3c --- /dev/null +++ b/net/asterisk10/files/patch-Makefile.rules @@ -0,0 +1,21 @@ + +$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] $< -> $@" |