Ticket #41319: patch-bin-mklib.diff
File patch-bin-mklib.diff, 1.6 KB (added by dstrubbe (David Strubbe), 11 years ago) |
---|
-
bin/mklib
old new 43 43 ARCHOPT="" 44 44 NOPREFIX=0 45 45 EXPORTS="" 46 46 ID="" 47 47 48 48 # 49 49 # Parse arguments … … 73 73 echo ' -archopt OPT specify an extra achitecture-specific option OPT' 74 74 echo " -noprefix don't prefix library name with 'lib' nor add any suffix" 75 75 echo ' -exports FILE only export the symbols listed in FILE' 76 echo ' -id NAME Sets the id of the dylib (Darwin)' 76 77 echo ' -h, --help display this information and exit' 77 78 exit 1 78 79 ;; … … 142 143 shift 1; 143 144 EXPORTS=$1 144 145 ;; 146 '-id') 147 shift 1; 148 ID=$1 149 ;; 145 150 -*) 146 151 echo "mklib: Unknown option: " $1 ; 147 152 exit 1 … … 185 190 echo PATCH is $PATCH 186 191 echo DEPS are $DEPS 187 192 echo "EXPORTS in" $EXPORTS 193 echo ID is $ID 188 194 echo "-----------------" 189 195 fi 190 196 … … 584 590 OPTS="${ARCHOPT} -bundle -multiply_defined suppress" 585 591 else 586 592 LIBSUFFIX="dylib" 587 OPTS="${ARCHOPT} -dynamiclib -multiply_defined suppress -current_version ${MAJOR}.${MINOR}.0 -compatibility_version ${MAJOR}.${MINOR}.0 -install_name lib${LIBNAME}.${MAJOR}.${LIBSUFFIX}" 593 if [ -z "$ID" ] ; then 594 ID="lib${LIBNAME}.${MAJOR}.${LIBSUFFIX}" 595 fi 596 OPTS="${ARCHOPT} -dynamiclib -multiply_defined suppress -current_version ${MAJOR}.${MINOR}.0 -compatibility_version ${MAJOR}.${MINOR}.0 -install_name ${ID}" 588 597 fi 589 598 LINKNAME="lib${LIBNAME}.${LIBSUFFIX}" 590 599 LIBNAME="lib${LIBNAME}.${MAJOR}.${LIBSUFFIX}"