mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 09:49:18 -04:00
IFC fails to link when invoked with -ax or -x option
because a static library of ifc has an unresolved symbol, __sigsetjmp. The following is an example of error messages: PR: 57574 Submitted by: Masakazu HIGAKI <higamasa@dream.com>
This commit is contained in:
parent
1e7ed00cf6
commit
814b6b4c9d
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=90575
6 changed files with 22 additions and 10 deletions
|
@ -122,7 +122,8 @@ do-build:
|
||||||
.for i in libcxa.a libimf.a libirc.a libircmt.a libunwind.a \
|
.for i in libcxa.a libimf.a libirc.a libircmt.a libunwind.a \
|
||||||
libBINDF90.a libCEPCF90.a libF90.a libIEPCF90.a libPEPCF90.a \
|
libBINDF90.a libCEPCF90.a libF90.a libIEPCF90.a libPEPCF90.a \
|
||||||
libcprts.a libintrins.a libompstub.a
|
libcprts.a libintrins.a libompstub.a
|
||||||
@${OBJCOPY} --redefine-sym stdin=__stdinp \
|
@${OBJCOPY} --redefine-sym __sigsetjmp=sigsetjmp \
|
||||||
|
--redefine-sym stdin=__stdinp \
|
||||||
--redefine-sym stdout=__stdoutp \
|
--redefine-sym stdout=__stdoutp \
|
||||||
--redefine-sym stderr=__stderrp \
|
--redefine-sym stderr=__stderrp \
|
||||||
${WRKSRC}/opt/intel/${COMPILERDIR}/ia32/lib/${i}
|
${WRKSRC}/opt/intel/${COMPILERDIR}/ia32/lib/${i}
|
||||||
|
|
|
@ -28,7 +28,7 @@
|
||||||
* Based on a shell-script written by Dan Nelson <dnelson@allantgroup.com>
|
* Based on a shell-script written by Dan Nelson <dnelson@allantgroup.com>
|
||||||
* with some modifications by Alexander Leidinger <netchild@FreeBSD.org>.
|
* with some modifications by Alexander Leidinger <netchild@FreeBSD.org>.
|
||||||
*
|
*
|
||||||
* $FreeBSD: /tmp/pcvs/ports/lang/ifc/files/ld.c,v 1.2 2003-04-28 22:17:47 maho Exp $
|
* $FreeBSD: /tmp/pcvs/ports/lang/ifc/files/ld.c,v 1.3 2003-10-08 00:04:36 maho Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* Uses code marked: */
|
/* Uses code marked: */
|
||||||
|
@ -206,6 +206,10 @@ main(int argc, char *argv[], char *envp[])
|
||||||
dynamic++;
|
dynamic++;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
if (ARGCMP("-shared")) {
|
||||||
|
dynamic++;
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Just link libstlport_icc* once when compiling the stlport
|
* Just link libstlport_icc* once when compiling the stlport
|
||||||
|
@ -334,7 +338,11 @@ main(int argc, char *argv[], char *envp[])
|
||||||
|
|
||||||
/* Switch Linux stuff to FreeBSD counterparts. */
|
/* Switch Linux stuff to FreeBSD counterparts. */
|
||||||
if (ARGCMP("/lib/ld-linux.so.2")) {
|
if (ARGCMP("/lib/ld-linux.so.2")) {
|
||||||
|
#if __FreeBSD_version >= 501105
|
||||||
|
addarg(&al, "/libexec/ld-elf.so.1", 1);
|
||||||
|
#else
|
||||||
addarg(&al, "/usr/libexec/ld-elf.so.1", 1);
|
addarg(&al, "/usr/libexec/ld-elf.so.1", 1);
|
||||||
|
#endif
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if (ARGCMP("-L/usr/lib")) {
|
if (ARGCMP("-L/usr/lib")) {
|
||||||
|
|
|
@ -30,9 +30,6 @@
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
|
|
||||||
static short unsigned int ctype_b[256] = { 0 };
|
|
||||||
short unsigned int *__ctype_b = ctype_b;
|
|
||||||
|
|
||||||
/* This matches struct stat64 in glibc2.1, hence the absolutely
|
/* This matches struct stat64 in glibc2.1, hence the absolutely
|
||||||
* insane amounts of padding around dev_t's.
|
* insane amounts of padding around dev_t's.
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -122,7 +122,8 @@ do-build:
|
||||||
.for i in libcxa.a libimf.a libirc.a libircmt.a libunwind.a \
|
.for i in libcxa.a libimf.a libirc.a libircmt.a libunwind.a \
|
||||||
libBINDF90.a libCEPCF90.a libF90.a libIEPCF90.a libPEPCF90.a \
|
libBINDF90.a libCEPCF90.a libF90.a libIEPCF90.a libPEPCF90.a \
|
||||||
libcprts.a libintrins.a libompstub.a
|
libcprts.a libintrins.a libompstub.a
|
||||||
@${OBJCOPY} --redefine-sym stdin=__stdinp \
|
@${OBJCOPY} --redefine-sym __sigsetjmp=sigsetjmp \
|
||||||
|
--redefine-sym stdin=__stdinp \
|
||||||
--redefine-sym stdout=__stdoutp \
|
--redefine-sym stdout=__stdoutp \
|
||||||
--redefine-sym stderr=__stderrp \
|
--redefine-sym stderr=__stderrp \
|
||||||
${WRKSRC}/opt/intel/${COMPILERDIR}/ia32/lib/${i}
|
${WRKSRC}/opt/intel/${COMPILERDIR}/ia32/lib/${i}
|
||||||
|
|
|
@ -28,7 +28,7 @@
|
||||||
* Based on a shell-script written by Dan Nelson <dnelson@allantgroup.com>
|
* Based on a shell-script written by Dan Nelson <dnelson@allantgroup.com>
|
||||||
* with some modifications by Alexander Leidinger <netchild@FreeBSD.org>.
|
* with some modifications by Alexander Leidinger <netchild@FreeBSD.org>.
|
||||||
*
|
*
|
||||||
* $FreeBSD: /tmp/pcvs/ports/lang/ifc7/files/Attic/ld.c,v 1.2 2003-04-28 22:17:47 maho Exp $
|
* $FreeBSD: /tmp/pcvs/ports/lang/ifc7/files/Attic/ld.c,v 1.3 2003-10-08 00:04:36 maho Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* Uses code marked: */
|
/* Uses code marked: */
|
||||||
|
@ -206,6 +206,10 @@ main(int argc, char *argv[], char *envp[])
|
||||||
dynamic++;
|
dynamic++;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
if (ARGCMP("-shared")) {
|
||||||
|
dynamic++;
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Just link libstlport_icc* once when compiling the stlport
|
* Just link libstlport_icc* once when compiling the stlport
|
||||||
|
@ -334,7 +338,11 @@ main(int argc, char *argv[], char *envp[])
|
||||||
|
|
||||||
/* Switch Linux stuff to FreeBSD counterparts. */
|
/* Switch Linux stuff to FreeBSD counterparts. */
|
||||||
if (ARGCMP("/lib/ld-linux.so.2")) {
|
if (ARGCMP("/lib/ld-linux.so.2")) {
|
||||||
|
#if __FreeBSD_version >= 501105
|
||||||
|
addarg(&al, "/libexec/ld-elf.so.1", 1);
|
||||||
|
#else
|
||||||
addarg(&al, "/usr/libexec/ld-elf.so.1", 1);
|
addarg(&al, "/usr/libexec/ld-elf.so.1", 1);
|
||||||
|
#endif
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if (ARGCMP("-L/usr/lib")) {
|
if (ARGCMP("-L/usr/lib")) {
|
||||||
|
|
|
@ -30,9 +30,6 @@
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
|
|
||||||
static short unsigned int ctype_b[256] = { 0 };
|
|
||||||
short unsigned int *__ctype_b = ctype_b;
|
|
||||||
|
|
||||||
/* This matches struct stat64 in glibc2.1, hence the absolutely
|
/* This matches struct stat64 in glibc2.1, hence the absolutely
|
||||||
* insane amounts of padding around dev_t's.
|
* insane amounts of padding around dev_t's.
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Add table
Reference in a new issue