mirror of
https://git.freebsd.org/ports.git
synced 2025-05-16 09:11:50 -04:00
See "Changes in 2.22" in http://sourceware.org/cgi-bin/cvsweb.cgi/~checkout~/src/ld/NEWS?rev=1.131.2.1&content-type=text/plain&cvsroot=src&only_with_tag=binutils-binutils-2_23_2 - Bump portrevision. Reported by: Robert Burmeister <Robert.Burmeister@UToledo.edu>
14 lines
461 B
Bash
14 lines
461 B
Bash
#!/bin/sh
|
|
|
|
# This is a wrapper to redirect compiler invokations to the port of gcc that
|
|
# contains fortran. LDFLAGS needs to be added so that the linker knows where
|
|
# to find the dynamic libraries.
|
|
|
|
# If the compiler is invoked with the argument "-v", adding LDFLAGS to the
|
|
# arguments results in an error which stops some packages being built.
|
|
|
|
if [ "x$*" = "x-v" ]; then
|
|
exec %%CC%% "$@"
|
|
else
|
|
exec %%CC%% %%LDFLAGS%% -Wl,--copy-dt-needed-entries "$@"
|
|
fi
|