1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-22 04:17:44 +00:00
freebsd-ports/net/xorp/files/patch-SConstruct
Kurt Jaeger aed832b2a9 net/xorp: fix build
PR:		217152
Submitted by:	Walter Schwarzenfeld <w.schwarzenfeld@utanet.at>
Reported by:	O. Hartmann <ohartmann@walstatt.org>
Approved by:	hrs (maintainer timeout)
2018-07-14 14:10:29 +00:00

80 lines
2.1 KiB
Plaintext

--- SConstruct.orig 2018-07-11 16:37:51 UTC
+++ SConstruct
@@ -162,22 +162,13 @@ if (len(COMMAND_LINE_TARGETS) == 0):
# XXX TODO: Make initial CPPPATH/LIBPATH derive from
# autodetected host system *or* command line.
-#env = Environment(
-# TOOLS = ['default', 'autotest', 'clntgen', 'tgtgen',
-# 'TOOL_SUBST'],
-# ENV = os.environ,
-# BUILDDIR = builddir,
-# CPPPATH=['/usr/local/include', '$BUILDDIR'],
-# LIBPATH=['usr/lib', '/usr/local/lib'],
-# variables = vars)
-
env = Environment(
TOOLS = ['default', 'autotest', 'clntgen', 'tgtgen',
'TOOL_SUBST'],
ENV = os.environ,
BUILDDIR = builddir,
- CPPPATH=['$BUILDDIR'],
- LIBPATH=['usr/lib'],
+ CPPPATH=['/usr/local/include', '$BUILDDIR'],
+ LIBPATH=['usr/lib', '/usr/local/lib'],
variables = vars)
prefix = env['prefix']
@@ -853,20 +844,6 @@ if env['enable_boost']:
# Some platforms have alignment warnings that cannot easily be
# fixed, so we can't enable Werror for them.
-if ((build != "i386-pc-mingw32") and
- (host_cpu == "i686" or
- host_cpu == "i386" or
- host_cpu == "x86_64")):
- env.AppendUnique(CFLAGS = [
- '-Werror',
- ])
- env.AppendUnique(CXXFLAGS = [
- '-Werror',
- ])
-else:
- print "WARNING: Detected funky platform, will not enable -Werror compile option: ", host_cpu
-
-
# NOTE: gcc specific flags.
env.AppendUnique(CFLAGS = [
'-W',
@@ -874,12 +851,14 @@ env.AppendUnique(CFLAGS = [
'-Wwrite-strings',
'-Wbad-function-cast',
'-Wmissing-prototypes',
- '-Wcast-qual',
+ '-Wno-cast-qual',
+ '-Wno-sign-compare',
'-Wmissing-declarations',
'-Wpointer-arith',
- '-Wcast-align',
'-Wstrict-prototypes',
'-Wnested-externs',
+ '-Wno-unused-function',
+ '-Wno-unused-parameter',
'-pipe',
])
@@ -887,11 +866,10 @@ env.AppendUnique(CXXFLAGS = [
'-W',
'-Wall',
'-Wwrite-strings',
- '-Wcast-qual',
+ '-Wno-cast-qual',
+ '-Wno-sign-compare',
'-Wpointer-arith',
- '-Wcast-align',
'-Woverloaded-virtual',
- '-ftemplate-depth-25',
'-pipe',
])