Ticket #34570: patch-hints_darwin.sh.diff
File patch-hints_darwin.sh.diff, 1.5 KB (added by BjarneDMat, 12 years ago) |
---|
-
hints/darwin.sh
old new esac 143 143 144 144 # Shared library extension is .dylib. 145 145 # Bundle extension is .bundle. 146 ld='cc';147 146 so='dylib'; 148 147 dlext='bundle'; 149 148 usedl='define'; … … case "$osvers" in 181 180 ldflags="${ldflags} -flat_namespace" 182 181 lddlflags="${ldflags} -bundle -undefined suppress" 183 182 ;; 183 9.*) 184 lddlflags="${ldflags} -bundle -undefined dynamic_lookup" 185 case "$ld" in 186 *MACOSX_DEVELOPMENT_TARGET*) ;; 187 *) ld="env MACOSX_DEPLOYMENT_TARGET=10.5 ${ld}" ;; 188 esac 189 ;; 190 10.*) 191 lddlflags="${ldflags} -bundle -undefined dynamic_lookup" 192 case "$ld" in 193 *MACOSX_DEVELOPMENT_TARGET*) ;; 194 *) ld="env MACOSX_DEPLOYMENT_TARGET=10.6 ${ld}" ;; 195 esac 196 ;; 197 11.*) 198 lddlflags="${ldflags} -bundle -undefined dynamic_lookup" 199 case "$ld" in 200 *MACOSX_DEVELOPMENT_TARGET*) ;; 201 *) ld="env MACOSX_DEPLOYMENT_TARGET=10.7 ${ld}" ;; 202 esac 203 ;; 184 204 *) 185 205 lddlflags="${ldflags} -bundle -undefined dynamic_lookup" 186 206 case "$ld" in … … esac 262 262 ;; 263 263 esac 264 264 265 # When the bind9 port is installed, its libbind includes dups from 266 # /usr/lib/libdl, so remove libbind 267 libswanted=`echo $libswanted | sed 's/ bind / /'` 268 265 269 ## 266 270 # System libraries 267 271 ## … … ranlib='ranlib' 326 350 # makefile in the same place. Since Darwin uses GNU make, this dodges 327 351 # the problem. 328 352 firstmakefile=GNUmakefile; 353 354 usenm='false'