mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-11 02:50:24 +00:00
- Fix build with CLang.
This commit is contained in:
parent
89da9581eb
commit
cca7c39910
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=245802
@ -18,7 +18,7 @@ GNU_CONFIGURE= yes
|
||||
USE_BZIP2= yes
|
||||
USE_LDCONFIG= yes
|
||||
|
||||
OPTIONS= CLANG "Build with LLVM/Clang (required for blocks support)" off
|
||||
OPTIONS= CLANG "Build with LLVM/Clang (required for blocks support)" on
|
||||
|
||||
MAN3= dispatch.3 dispatch_after.3 dispatch_api.3 dispatch_apply.3 \
|
||||
dispatch_async.3 dispatch_benchmark.3 dispatch_group_create.3 \
|
||||
@ -80,11 +80,7 @@ post-configure:
|
||||
IGNORE= is not supported on this OS version
|
||||
.endif
|
||||
|
||||
.if defined(WITH_CLANG)
|
||||
BROKEN= does not compile
|
||||
.endif
|
||||
|
||||
.if defined(WITH_CLANG)
|
||||
.if !defined(WITHOUT_CLANG)
|
||||
BUILD_DEPENDS+= clang:${PORTSDIR}/devel/llvm-devel \
|
||||
${LOCALBASE}/lib/libBlocksRuntime.so:${PORTSDIR}/devel/compiler-rt
|
||||
RUN_DEPENDS+= clang:${PORTSDIR}/devel/llvm-devel \
|
||||
|
11
devel/libdispatch/files/patch-configure
Normal file
11
devel/libdispatch/files/patch-configure
Normal file
@ -0,0 +1,11 @@
|
||||
--- configure.orig 2009-12-14 13:44:05.000000000 -0800
|
||||
+++ configure 2009-12-14 13:45:02.000000000 -0800
|
||||
@@ -19325,7 +19325,7 @@
|
||||
# should force that linkage already.
|
||||
#
|
||||
saveCFLAGS="$CFLAGS"
|
||||
- CFLAGS="$CFLAGS -fblocks"
|
||||
+ CFLAGS="$CFLAGS -fblocks -O0"
|
||||
{ $as_echo "$as_me:$LINENO: checking whether additional libraries are required for the Blocks runtime" >&5
|
||||
$as_echo_n "checking whether additional libraries are required for the Blocks runtime... " >&6; }
|
||||
cat >conftest.$ac_ext <<_ACEOF
|
Loading…
Reference in New Issue
Block a user