diff options
author | rene <rene@FreeBSD.org> | 2011-08-09 14:39:25 +0800 |
---|---|---|
committer | rene <rene@FreeBSD.org> | 2011-08-09 14:39:25 +0800 |
commit | 1ee13dcce97fdaf8af3fb50fdf929dd5283e125d (patch) | |
tree | 1b1621e6f7a7492cf9d56eba79bf6a4ccf94d2b4 /multimedia/mplayer | |
parent | ef67524c0596bf8b30873a9d60b5e3be633b4060 (diff) | |
download | freebsd-ports-gnome-1ee13dcce97fdaf8af3fb50fdf929dd5283e125d.tar.gz freebsd-ports-gnome-1ee13dcce97fdaf8af3fb50fdf929dd5283e125d.tar.zst freebsd-ports-gnome-1ee13dcce97fdaf8af3fb50fdf929dd5283e125d.zip |
Fix build with clang: in contrast to lang/clang, the one from base adds
"FreeBSD" in front of it which broke the detection of the compiler name.
If the operating system name is added, use the second word as the compiler
name.
PR: ports/159250
Submitted by: Test Rat (ttsestt gmail.com)
Approved by: maintainer (in private mail)
Diffstat (limited to 'multimedia/mplayer')
-rw-r--r-- | multimedia/mplayer/files/patch-configure | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/multimedia/mplayer/files/patch-configure b/multimedia/mplayer/files/patch-configure index d2675dbac8b4..c4549d5f374f 100644 --- a/multimedia/mplayer/files/patch-configure +++ b/multimedia/mplayer/files/patch-configure @@ -28,6 +28,15 @@ fi if netbsd || dragonfly ; then +@@ -1661,7 +1660,7 @@ else + echores "$cc_version" + break + fi +- cc_name_tmp=$($_cc -v 2>&1 | head -n 1 | cut -d ' ' -f 1) ++ cc_name_tmp=$($_cc -v 2>&1 | awk "NR == 1 { if(\$1 == \"$system_name\") print \$2; else print \$1 }") + if test "$cc_name_tmp" = "clang"; then + echocheck "$_cc version" + cc_vendor=clang @@ -3577,22 +3576,10 @@ if linux ; then THREAD_CFLAGS=-D_REENTRANT |