Improve support for g95 and non-GNU ld
Auto-add "-fno-second-underscore" option to make LAPACKE compile (as it calls LAPACK functions that may have gotten a second underscore added otherwise). Also support -R for rpath when parsing compiler directives in f_check
This commit is contained in:
parent
3a39062cfc
commit
911c3e2f4b
|
@ -769,6 +769,9 @@ else
|
||||||
FCOMMON_OPT += -m32
|
FCOMMON_OPT += -m32
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
ifneq ($(NO_LAPACKE), 1)
|
||||||
|
FCOMMON_OPT += -fno-second-underscore
|
||||||
|
endif
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
7
f_check
7
f_check
|
@ -130,6 +130,11 @@ if ($compiler eq "") {
|
||||||
if ($data =~ / zho_ge__/) {
|
if ($data =~ / zho_ge__/) {
|
||||||
$need2bu = 1;
|
$need2bu = 1;
|
||||||
}
|
}
|
||||||
|
if ($vendor =~ /G95/) {
|
||||||
|
if ($ENV{NO_LAPACKE} != 1) {
|
||||||
|
$need2bu = "";
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($vendor eq "") {
|
if ($vendor eq "") {
|
||||||
|
@ -277,6 +282,8 @@ $linker_a = "";
|
||||||
if ($link ne "") {
|
if ($link ne "") {
|
||||||
|
|
||||||
$link =~ s/\-Y\sP\,/\-Y/g;
|
$link =~ s/\-Y\sP\,/\-Y/g;
|
||||||
|
|
||||||
|
$link =~ s/\-R+/\-rpath\@/g;
|
||||||
|
|
||||||
$link =~ s/\-rpath\s+/\-rpath\@/g;
|
$link =~ s/\-rpath\s+/\-rpath\@/g;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue