svn commit: r318796 - head/sysutils/replicant
Matthias Andree
mandree at FreeBSD.org
Wed May 22 21:33:25 UTC 2013
Author: mandree
Date: Wed May 22 21:33:24 2013
New Revision: 318796
URL: http://svnweb.freebsd.org/changeset/ports/318796
Log:
- Change USE_GCC=4.6 (explicit version) to USE_GCC=yes, [1].
- In order to get that working, beat compilation environment into shape
for GCC 4.7/4.8 with two defines and one -include on CPPFLAGS.
- Clean up CPPFLAGS/LDFLAGS handling, getting rid of CONFIGURE_ARGS hacks.
- Correct two bugs in
.if ${OSVERSION} < 90014 || !exists(clang++)
to .if ${OSVERSION} < 900014 || !exists(/usr/bin/clang++)
(where the OSVERSION lacked a 0 digit, and exists lacked the path,
resulting in GCC being used even where clang++ was in base)
Requested by: gerald [1]
Modified:
head/sysutils/replicant/Makefile
Modified: head/sysutils/replicant/Makefile
==============================================================================
--- head/sysutils/replicant/Makefile Wed May 22 20:40:23 2013 (r318795)
+++ head/sysutils/replicant/Makefile Wed May 22 21:33:24 2013 (r318796)
@@ -19,16 +19,20 @@ LIB_DEPENDS= busybee:${PORTSDIR}/devel/b
ONLY_FOR_ARCHS= amd64
GNU_CONFIGURE= yes
USE_LDCONFIG= yes
-CONFIGURE_ARGS= CPPFLAGS="-I${LOCALBASE}/include" \
- LDFLAGS="-L${LOCALBASE}/lib"
+# The -D-efines and -include beat the code into shape on GCC 4.7/4.8
+# GCC 4.6 from ports and 9.1's base clang are fine,
+# upstream bug report at <https://github.com/rescrv/po6/issues/5>
+# This hack causes harmless "warning: '__STDC_LIMIT_MACROS' macro redefined"
+CPPFLAGS+= -D__STDC_LIMIT_MACROS -Du_int32_t=uint32_t \
+ -include stdint.h -I${LOCALBASE}/include
+LDFLAGS+= -L${LOCALBASE}/lib
USES= pathfix pkgconfig
.include <bsd.port.pre.mk>
-.if ${OSVERSION} < 90014 || !exists(clang++)
-# newer GCC versions than 4.6 do not work; clang 3.1 seems fine;
-# bug report to upstream at: <https://github.com/rescrv/po6/issues/5>
-USE_GCC= 4.6
+.if ${OSVERSION} < 900014 || !exists(/usr/bin/clang++)
+# No clang++ installed, use GCC from ports:
+USE_GCC= yes
.else
CC= clang
CXX= clang++
More information about the svn-ports-head
mailing list