kopia lustrzana https://github.com/jamescoxon/dl-fldigi
Update build system
Rename OS X app bundle directories Use correct ld switch to link hamlib statically on Linuxpull/2/head
rodzic
1d42855a2a
commit
bcbd70128e
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Ładowanie…
Reference in New Issue