mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-25 04:43:33 +00:00
- Some ports ship with libtool 1.5.x + "anygcc" patch. This modified
version calls "gcc" in two places. Replace that with $CC. - r346193 added -B${LOCALBASE}/bin in Uses/fortran.mk, just like compiler.mk, but libtool doesn't recognise this flag and discards it. Patch ltmain.sh so it passes the flag to the linker unmodified. This only works on libtool 2.x for now, but that's good enough to fix the PRs below and a linker error in math/octave on FreeBSD/i386 8.x. (When those ports set USES=libtool.) PR: ports/186946, ports/187000 Approved by: bapt
This commit is contained in:
parent
8a85f4a231
commit
85fb32d611
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=346312
@ -19,12 +19,18 @@ _INCLUDE_USES_LIBTOOL_POST_MK= yes
|
||||
patch-libtool:
|
||||
@${FIND} ${WRKDIR} \( -name configure -or -name ltconfig \) \
|
||||
-type f | ${XARGS} ${REINPLACE_CMD} \
|
||||
-e '/gcc_dir=\\`/s/gcc /$$CC /' \
|
||||
-e '/gcc_ver=\\`/s/gcc /$$CC /' \
|
||||
-e '/link_all_deplibs[0-9A-Z_]*=/s/=unknown/=no/' \
|
||||
-e 's,freebsd\*),freebsd\*|dragonfly\*),g' \
|
||||
-e '/objformat=/s/echo aout/echo elf/' \
|
||||
-e "/freebsd-elf\\*)/,/;;/ { \
|
||||
/deplibs_check_method=/s/=.*/=pass_all/; }"
|
||||
|
||||
@${FIND} ${WRKDIR} -type f -name ltmain.sh | \
|
||||
${XARGS} ${REINPLACE_CMD} \
|
||||
-e 's/|-p|-pg|/|-B*|-p|-pg|/'
|
||||
|
||||
.if ! ${libtool_ARGS:Moldver}
|
||||
@${FIND} ${WRKDIR} \( -name configure -or -name ltconfig \) \
|
||||
-type f | ${XARGS} ${REINPLACE_CMD} \
|
||||
|
Loading…
Reference in New Issue
Block a user