openbsd-ports/graphics/mapnik/patches/patch-SConstruct
landry f75f2cdf77 Update to mapnik 2.0.1
- enable sqlite input plugin
- enable regress tests
- fix WANTLIB
- now scons doesn't rebuild mapnik during make fake ! Hint :
http://wiki.gentoo.org/wiki/SCons#Why_you_should_NOT_use_SCons_in_your_project
2012-05-03 08:48:26 +00:00

25 lines
974 B
Plaintext

$OpenBSD: patch-SConstruct,v 1.2 2012/05/03 08:48:26 landry Exp $
--- SConstruct.orig Tue Apr 10 00:56:48 2012
+++ SConstruct Wed May 2 22:39:34 2012
@@ -1028,6 +1028,11 @@ if not preconfigured:
thread_suffix = ''
env.Append(LIBS = 'pthread')
+ if env['PLATFORM'] == 'OpenBSD':
+ thread_suffix = '-mt'
+ env.Append(LIBS = 'pthread')
+ env.Append(LINKFLAGS = ['-lstdc++'])
+
# Solaris & Sun Studio settings (the `SUNCC` flag will only be
# set if the `CXX` option begins with `CC`)
SOLARIS = env['PLATFORM'] == 'SunOS'
@@ -1145,6 +1150,8 @@ if not preconfigured:
# of attaching to cxxflags after configure
if env['PLATFORM'] == 'SunOS':
env.Append(CXXFLAGS = '-pthreads')
+ if env['PLATFORM'] == 'OpenBSD':
+ env.Append(CXXFLAGS = '-pthread')
# if requested, sort LIBPATH and CPPPATH before running CheckLibWithHeader tests
if env['PRIORITIZE_LINKING']: