aboutsummaryrefslogtreecommitdiff
path: root/lang/tolua++/files
diff options
context:
space:
mode:
authorDmitry Marakasov <amdmi3@FreeBSD.org>2008-08-21 22:31:18 +0000
committerDmitry Marakasov <amdmi3@FreeBSD.org>2008-08-21 22:31:18 +0000
commit829872221b3d1e65a8e6a8f3e4403cfcc51cd322 (patch)
treefbbe099d4368ea4064085052cab0aeaea514b09d /lang/tolua++/files
parent2ff4341f92a6816e52d85098a6363148e8958ba6 (diff)
downloadports-829872221b3d1e65a8e6a8f3e4403cfcc51cd322.tar.gz
ports-829872221b3d1e65a8e6a8f3e4403cfcc51cd322.zip
- Fix shared lib support
Notes
Notes: svn path=/head/; revision=218973
Diffstat (limited to 'lang/tolua++/files')
-rw-r--r--lang/tolua++/files/patch-SConstruct16
-rw-r--r--lang/tolua++/files/patch-src-lib-SCsub8
2 files changed, 16 insertions, 8 deletions
diff --git a/lang/tolua++/files/patch-SConstruct b/lang/tolua++/files/patch-SConstruct
index fc35d15f2166..2b30c2c34c30 100644
--- a/lang/tolua++/files/patch-SConstruct
+++ b/lang/tolua++/files/patch-SConstruct
@@ -1,11 +1,21 @@
---- SConstruct.orig Sat Dec 23 14:21:33 2006
-+++ SConstruct Sat Dec 23 14:21:46 2006
-@@ -128,7 +128,7 @@
+--- SConstruct.orig 2006-04-10 13:45:44.000000000 +0400
++++ SConstruct 2008-08-22 01:43:56.000000000 +0400
+@@ -17,6 +17,7 @@
+ opts.Add('CCFLAGS', 'Flags for the compiler.', ['-O2', '-Wall'])
+ opts.Add('LINK', 'The linker.')
+ opts.Add('LINKFLAGS', 'Linker flags.', [])
++opts.Add('SONAME', 'Shared library name.')
+ opts.Add('no_cygwin', 'Use -mno-cygwin to build using the mingw compiler on cygwin', 0)
+ opts.Add('LIBS', 'libraries', [])
+ opts.Add('LIBPATH', 'library path', [])
+@@ -128,7 +129,9 @@
########### end of helper builders
env['CPPPATH'] = '#/include'
-env['LIBPATH'] = ['#/lib'] + env['LIBPATH']
+env['LIBPATH'] = ['#/lib'] + env['LIBPATH'].split(" ")
++
++env['SHLINKFLAGS'] += ' -Wl,-soname='+env['SONAME']
if env['no_cygwin']:
diff --git a/lang/tolua++/files/patch-src-lib-SCsub b/lang/tolua++/files/patch-src-lib-SCsub
index 5b755fb8dd0a..736f807b34b1 100644
--- a/lang/tolua++/files/patch-src-lib-SCsub
+++ b/lang/tolua++/files/patch-src-lib-SCsub
@@ -1,10 +1,8 @@
--- src/lib/SCsub.orig 2005-11-28 16:51:15.000000000 +0300
-+++ src/lib/SCsub 2008-08-19 22:57:11.000000000 +0400
-@@ -9,5 +9,6 @@
- 'tolua_to.c',
++++ src/lib/SCsub 2008-08-22 01:44:24.000000000 +0400
+@@ -10,4 +10,5 @@
]
--env.lib_target = env.Library('#/lib/'+env['tolua_lib'], sources)
-+env.lib_target = env.Library('#/lib/'+env['tolua_lib'], sources)
+ env.lib_target = env.Library('#/lib/'+env['tolua_lib'], sources)
+env.lib_target += env.SharedLibrary('#/lib/'+env['tolua_lib'], sources)