Shuffle the guts of the ELF/gcc librarian around.

Also shuffle the guts of the MacOS/dylib librarian for symmetry
This commit is contained in:
david parsons
2011-01-10 10:27:54 -08:00
parent a2f46c62d6
commit 9dc73d4092
+6 -4
View File
@@ -1207,13 +1207,14 @@ AC_CC_SHLIBS () {
ACTION=\$1; shift
LIBRARY=\$1; shift
LIBNAME=\$LIBRARY.so
FULLNAME="\$LIBNAME.\$VERSION"
eval \`awk -F. '{ printf "MAJOR=%d\n", \$1;
printf "VERSION=%d.%d.%d\n", \$1, \$2, \$3; }' \$1\`
shift
LIBNAME=\$LIBRARY.so
FULLNAME=\$LIBNAME.\$VERSION
case "\$ACTION" in
make) FLAGS="$AC_CFLAGS -shared"
unset VFLAGS
@@ -1249,13 +1250,14 @@ EOF
ACTION=\$1; shift
LIBRARY=\$1; shift
LIBNAME=\$LIBRARY.dylib
FULLNAME="\$LIBNAME"
eval \`awk -F. '{ printf "MAJOR=%d\n", \$1;
printf "VERSION=%d.%d.%d\n", \$1, \$2, \$3; }' \$1\`
shift
LIBNAME=\$LIBRARY.dylib
FULLNAME=\$LIBNAME
case "\$ACTION" in
make) FLAGS="$AC_CFLAGS -dynamiclib"
VFLAGS="-current_version \$VERSION -compatibility_version \$MAJOR"