Update build system

Rename OS X app bundle directories
Use correct ld switch to link hamlib statically on Linux
pull/2/head
Stelios Bounanos 2008-09-03 21:17:55 +01:00
rodzic 1d42855a2a
commit bcbd70128e
2 zmienionych plików z 8 dodań i 7 usunięć

Wyświetl plik

@ -17,20 +17,21 @@ else
hamlib_dir=/usr/lib
fi
fi
hamlib_libs="$hamlib_dir/hamlib-*.a"
case "$target_os" in
*linux*)
AM_LDFLAGS="$AM_LDFLAGS -Wl,--whole-archive $hamlib_dir/hamlib-*.a -Wl,--no-whole-archive"
AM_LDFLAGS="$AM_LDFLAGS -Wl,--export-dynamic -Wl,--whole-archive $hamlib_libs -Wl,--no-whole-archive"
;;
*darwin*)
# Apple's ld isn't quite up to this task: there is no way to specify -all_load for
# only a subset of the libraries that we must link with. For this reason we resort
# to using the "dangerous" -m flag, which turns "multiply defined symbol" errors
# into warnings. This will probably not work for ppc64 and x86_64 universal binaries.
AM_LDFLAGS="$AM_LDFLAGS -Wl,-all_load -Wl,-m $hamlib_dir/hamlib-*.a"
AM_LDFLAGS="$AM_LDFLAGS -Wl,-all_load -Wl,-m $hamlib_libs"
;;
*cygwin*)
AM_LDFLAGS="$AM_LDFLAGS -Wl,--export-all-symbols -Wl,--whole-archive $hamlib_dir/hamlib-*.a -Wl,--no-whole-archive"
AM_LDFLAGS="$AM_LDFLAGS -Wl,--export-all-symbols -Wl,--whole-archive $hamlib_libs -Wl,--no-whole-archive"
;;
*)
echo "E: This script does not support $target_os" >&2

Wyświetl plik

@ -93,10 +93,10 @@ endif
if DARWIN
appbundle: fldigi
sh $(srcdir)/../scripts/mkappbundle.sh "$(srcdir)/../data" . \
$(PACKAGE_TARNAME)-$(PACKAGE_VERSION)-bundle-nolibs \
$(PACKAGE_TARNAME)-$(PACKAGE_VERSION)-bundle
CLEAN_LOCAL_FILES += $(PACKAGE_TARNAME)-$(PACKAGE_VERSION)-bundle-nolibs \
$(PACKAGE_TARNAME)-$(PACKAGE_VERSION)-bundle \
$(PACKAGE_TARNAME)-$(PACKAGE_VERSION)-nolibs \
$(PACKAGE_TARNAME)-$(PACKAGE_VERSION)
CLEAN_LOCAL_FILES += $(PACKAGE_TARNAME)-$(PACKAGE_VERSION)-nolibs \
$(PACKAGE_TARNAME)-$(PACKAGE_VERSION) \
$(PACKAGE_TARNAME)-$(PACKAGE_VERSION)*.dmg
endif