summaryrefslogtreecommitdiff
path: root/app-i18n/sunpinyin/files/sunpinyin-2.0.3-force-switch.patch
blob: de85e82c1d5e09142d1460701d6e12b318b83fe1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
--- a/SConstruct
+++ b/SConstruct
@@ -180,12 +180,6 @@ libdir = env['LIBDIR']
 libdatadir = env['LIBDATADIR'] + '/sunpinyin/data'
 headersdir = env['PREFIX'] + '/include/sunpinyin-2.0'
 
-if GetOS() != 'Darwin':
-    env.Append(LINKFLAGS=['-Wl,-soname=libsunpinyin.so.%d' % abi_major])
-
-if GetOption('rpath') is not None and GetOS() != 'Darwin':
-    env.Append(LINKFLAGS='-Wl,-R -Wl,%s' % GetOption('rpath'))
-
 # pass through environmental variables
 envvar = [('CC', 'CC'),
           ('CXX', 'CXX'),
@@ -202,6 +196,12 @@ extra_cflags=' -DHAVE_CONFIG_H -DSUNPINYIN_DATA_DIR=\'"%s"\'' % libdatadir
 env.Append(CFLAGS=extra_cflags)
 env.Append(CXXFLAGS=extra_cflags)
 
+if GetOS() != 'Darwin':
+    env.Append(LINKFLAGS=' -Wl,-soname=libsunpinyin.so.%d' % abi_major)
+
+if GetOption('rpath') is not None and GetOS() != 'Darwin':
+    env.Append(LINKFLAGS=' -Wl,-R -Wl,%s' % GetOption('rpath'))
+
 #
 #==============================configure================================
 #