mirror of
https://github.com/Orc/discount.git
synced 2026-09-25 04:10:00 +03:00
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:
+6
-4
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user