b6ec46771a
Change summary since 1.5.10: * ltmain.in: Add -pthread like flags when linking executables too. * ltmain.in (func_extract_archives) [darwin]: This didn't actually work on a real fat archive, should do now. * tests/func_extract_archives.test: remove darwin fat tests which did not actually work. * ltmain.in (link mode): Allow five digits in version-info * ltmain.in (link mode): With piecewise (partial) linking, fix intermediate output name for subdir-objects. * ltmain.in [darwin]: Don't add installed libs to temp_rpath when building executables on darwin, or other systems which use hardcode_automatic. It may break our wrapper scripts. * ltmain.in [darwin]: Allow -framework foo through when given on the command line. * ltmain.in [irix]: Preserve processor option for SGI Compiler (-r[0-9][0-9]*). * ltmain.in: Don't pass through compiler-like thread flags when using $LD to do the linking. Use compiler_flags instead. Reported by Mark_Andrews@isc.org. * libtool.m4 (AC_LIBTOOL_SYS_DYNAMIC_LINKER) [linux]: While "parsing" /etc/ld.so.conf, skip comments. * ltmain.in (func_extract_archives): Not all shells grok `read -r' (unnecessary in this case). Reported by Ralf Menzel <menzel@ls6.cs.uni-dortmund.de>. * libtool.m4 [solaris] (AC_LIBTOOL_PROG_LD_SHLIBS): Use ${wl} for whole_archive_flag_spec. Missing backport reported by Ralf Menzel * libtool.m4 [linux] (AC_LIBTOOL_PROG_COMPILER_PIC): match $cc_basename, not $CC against icc. Also, for symmetry match icpc* and ecpc* (ia64 version of icpc). * m4/libtool.m4 (_LT_SYS_DYNAMIC_LINKER) [linux]: Interpret `include' statements in toplevel ld.so.conf file. * config/ltmain.in (func_mode_link): When linking an installed libtool library on the command line using -lfoo we need to find the library in the search paths and add it's dependency_libs to the link in the conv pass so that any libtool libs listed are correctly expanded in the link pass.
81 lines
2.1 KiB
Makefile
81 lines
2.1 KiB
Makefile
# $NetBSD: Makefile,v 1.60 2005/03/22 15:12:08 tv Exp $
|
|
#
|
|
|
|
.include "../../devel/libtool/Makefile.common"
|
|
|
|
#
|
|
# HEADS UP! Before changing PKGREVISION: Did you remember to merge
|
|
# any changes into the m4 manual diffs? Updating patch-a[bd] is not enough!
|
|
#
|
|
# See devel/libtool/patches/manual.README for instructions on how to make
|
|
# these patch files properly, so that your changes won't be lost completely
|
|
# on the next libtool update.
|
|
#
|
|
PKGNAME= ${DISTNAME:S/-/-base-/}
|
|
SVR4_PKGNAME= ltoob
|
|
|
|
COMMENT= Generic shared library support script (the script itself)
|
|
|
|
CONFLICTS+= libtool<=1.3.5nb11
|
|
|
|
TEST_TARGET= check
|
|
|
|
.if ${OPSYS} == "AIX"
|
|
|
|
# always build libraries and executables that use the runtime linker.
|
|
# in addition, disable libtool locking, as the test is broken on AIX,
|
|
# and results in files being locked indefinitely.
|
|
LDFLAGS+= -Wl,-brtl
|
|
CONFIGURE_ARGS+= --disable-libtool-lock
|
|
|
|
.elif ${OPSYS} == "IRIX"
|
|
|
|
# The MIPSpro compiler doesn't support -c with -o, but the locking
|
|
# workaround is itself broken. Disable it unconditionally.
|
|
CONFIGURE_ARGS+= --disable-libtool-lock
|
|
|
|
.elif ${OPSYS} == "NetBSD"
|
|
. if !exists(/usr/libexec/ld.so) && !exists(/usr/libexec/ld.elf_so)
|
|
CONFIGURE_ARGS+= --disable-shared
|
|
BUILD_SHLIBTOOL= NO
|
|
. endif
|
|
|
|
.endif
|
|
|
|
CONFIGURE_ARGS+= --disable-ltdl-install
|
|
BUILD_SHLIBTOOL?= YES
|
|
|
|
# We are going to want libtool to find the same versions of the C, C++,
|
|
# and Fortran compilers.
|
|
#
|
|
USE_LANGUAGES= c c++ fortran
|
|
CONFIGURE_ARGS+= --with-tags=CXX,F77,GCJ
|
|
|
|
.PHONY: fix-libtool
|
|
fix-libtool:
|
|
cd ${WRKSRC}; for f in libtool; do \
|
|
${SED} -e "s,-L${BUILDLINK_DIR}/lib,," $$f > $$f.new; \
|
|
if [ -x $$f ]; then ${CHMOD} +x $$f.new; fi; \
|
|
${MV} -f $$f.new $$f; \
|
|
done
|
|
|
|
post-build: fix-libtool
|
|
|
|
.if ${BUILD_SHLIBTOOL} == "NO"
|
|
PLIST_SUBST+= SHLIBTOOL="@comment "
|
|
.else
|
|
PLIST_SUBST+= SHLIBTOOL=
|
|
|
|
post-build:
|
|
cd ${WRKSRC} && \
|
|
${SED} -e '/^# Whether or not to build static/{n;s/yes/no/;}' \
|
|
< libtool > shlibtool
|
|
|
|
post-install:
|
|
${INSTALL_SCRIPT} ${WRKSRC}/shlibtool ${PREFIX}/bin/shlibtool
|
|
.endif
|
|
|
|
BUILDLINK_DEPMETHOD.dlcompat= build
|
|
|
|
.include "../../mk/dlopen.buildlink3.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|