Ticket #47498: patch-SConstruct.diff
File patch-SConstruct.diff, 2.3 KB (added by jmroot (Joshua Root), 10 years ago) |
---|
-
SConstruct
old new 522 522 # here; it's a security risk. At install time we use 523 523 # chrpath to edit this out of RPATH. 524 524 env.Prepend(RPATH=[os.path.realpath(os.curdir)]) 525 el se:525 elif env.subst('$PLATFORM') != 'darwin': 526 526 print "chrpath is not available; please build with chrpath=no." 527 527 528 528 confdefs = ["/* gpsd_config.h. Generated by scons, do not hand-hack. */\n"] … … 747 747 # ifdef __cplusplus 748 748 extern "C" { 749 749 # endif 750 #ifndef clockid_t750 #ifndef CLOCKID_T_DEFINED 751 751 typedef int clockid_t; 752 #define CLOCKID_T_DEFINED 752 753 # endif 753 754 /* OS X uses _STRUCT_TIMESPEC, but no clock_gettime */ 754 755 #ifndef _STRUCT_TIMESPEC … … 922 923 ilib_suffix = '.' + version + shlib_suffix 923 924 shlink_flags += [ '-current_version', '%s' % version, 924 925 '-compatibility_version', '%s' % version, 926 '-install_name', '%s/%s/lib%s.%s.dylib' % (env['prefix'], env['libdir'], libname, '%s' % version), 925 927 '-undefined', 'dynamic_lookup' ] 926 928 927 929 ilib = env.SharedLibrary(libname,lib_objs, … … 1148 1150 basecflags += ' -coverage' 1149 1151 ldflags += ' -coverage' 1150 1152 ldshared += ' -coverage' 1151 # in case CC/CXX was set to the scan-build wrapper,1152 # ensure that we build the python modules with scan-build, too1153 if env['CC'] is None or env['CC'].find('scan-build') < 0:1154 python_env['CC'] = cc1155 else:1156 python_env['CC'] = ' '.join([env['CC']] + cc.split()[1:])1157 if env['CXX'] is None or env['CXX'].find('scan-build') < 0:1158 python_env['CXX'] = cxx1159 else:1160 python_env['CXX'] = ' '.join([env['CXX']] + cxx.split()[1:])1161 1153 1154 ldshared=ldshared.replace(cc, env['CC']) 1162 1155 ldshared=ldshared.replace('-fPIE', '') 1163 1156 ldshared=ldshared.replace('-pie', '') 1164 1157 python_env.Replace(SHLINKFLAGS=[], … … 1397 1390 if qt_env: 1398 1391 binaryinstall.append(LibraryInstall(qt_env, installdir('libdir'), compiled_qgpsmmlib)) 1399 1392 1400 if env["shared"] and env ["chrpath"]:1393 if env["shared"] and env.subst('$PLATFORM') != 'darwin': 1401 1394 env.AddPostAction(binaryinstall, '$CHRPATH -r "%s" "$TARGET"' \ 1402 1395 % (installdir('libdir', False), )) 1403 1396