Unify building on Darwin
Compare changes
+ 29
− 46
@@ -167,6 +167,9 @@ if ($OS_ARCH eq 'x86_64') {
@@ -167,6 +167,9 @@ if ($OS_ARCH eq 'x86_64') {
@@ -180,7 +183,6 @@ if ($OS eq "Linux" || $OS eq "Darwin"){
@@ -180,7 +183,6 @@ if ($OS eq "Linux" || $OS eq "Darwin"){
@@ -232,36 +234,29 @@ my %LIBRARIES;
@@ -232,36 +234,29 @@ my %LIBRARIES;
# pxdst defines the symbols _qnext and _zend which are also defined in CERNLIB. This should be generally fine
# but for shortdst and longdst which do not use the routines (pxloop and pxend) using those, and the Apple linker
# links these and their dependencies, resulting in thee need of adding most of the other DELPHI libraries albeit they
# should not be used. To remedy this, on Apple we create an additional library pxdstext which contains only those symbols
# of pxdst which are needed for (x)shortdst and longdst, and link against this one instead when creating these execs.
@@ -587,7 +582,7 @@ sub MakeLibs {
@@ -587,7 +582,7 @@ sub MakeLibs {
print CRA "+USE, SHIFT.\n+USE, $PLINAM,*$PLINAM.\n+USE, UNIX.\n" if grep {$_ eq $lib} qw(pxdst33 pxdst34 ux26 dstanaxx vdclapxx vfclapxx ufield);
@@ -1137,7 +1132,7 @@ sub CreateSimrun {
@@ -1137,7 +1132,7 @@ sub CreateSimrun {
my $command = "$F77{$OS} $LDFLAGS $FFLAGS $ADDFOPT -o $lib *.f $DELPHI_BLKD/simblkd.o $dellib $cernlib";
@@ -1162,7 +1157,7 @@ sub CreateDelana {
@@ -1162,7 +1157,7 @@ sub CreateDelana {
@liblist = qw(trigglib pxdst33 pxtag25 pxdst33 delphys deltask delanamod delanagen delanamod ux26 ddappxx tanagra322 uhlib ufield com);
map {PrintError("Cannot create \"$lib.exe\": no library $DELPHI_LIB/lib$_.a") if not -f "$DELPHI_LIB/lib$_.a"} @liblist;
map {PrintError("Cannot create \"$lib.exe\": no object $_") if not -f $_} ("$DELPHI_BLKD/anablkd.o","$DELPHI_LIB/fxsolv.o");
@@ -1170,10 +1165,10 @@ sub CreateDelana {
@@ -1170,10 +1165,10 @@ sub CreateDelana {
@liblist = qw(trigglib pxdst34 pxtag25 pxdst34 delphys deltask delanamod delanagen delanamod ux26 ddappxx tanagra322 uhlib ufield com);
map {PrintError("Cannot create \"$lib.exe\": no library $DELPHI_LIB/lib$_.a") if not -f "$DELPHI_LIB/lib$_.a"} @liblist;
map {PrintError("Cannot create \"$lib.exe\": no object $_") if not -f $_} ("$DELPHI_BLKD/anablkd.o","$DELPHI_LIB/fxsolv.o");
@@ -1181,7 +1176,7 @@ sub CreateDelana {
@@ -1181,7 +1176,7 @@ sub CreateDelana {
@@ -1218,7 +1213,7 @@ sub CreateDelana {
@@ -1218,7 +1213,7 @@ sub CreateDelana {
my $command = "$F77{$OS} $LDFLAGS $FFLAGS $ADDFOPT -o $lib.exe *.f $DELPHI_BLKD/anablkd.o $dellib $cernlib";
@@ -1245,13 +1240,13 @@ sub MakeXShorty {
@@ -1245,13 +1240,13 @@ sub MakeXShorty {
map {PrintInfo("\"$lib.exe\": no library $DELPHI_LIB/lib$_.a") if not -f "$DELPHI_LIB/lib$_.a"} @liblist;
map {PrintError("Cannot create \"$lib.exe\": no object $_") if not -f $_} ("$DELPHI_BLKD/delblkd.o");
@@ -1274,13 +1269,12 @@ sub MakeXShorty {
@@ -1274,13 +1269,12 @@ sub MakeXShorty {
@@ -1318,13 +1312,12 @@ sub MakeShorty {
@@ -1318,13 +1312,12 @@ sub MakeShorty {
map {PrintError("Cannot create \"$lib.exe\": no library $DELPHI_LIB/lib$_.a") if not -f "$DELPHI_LIB/lib$_.a"} @liblist;
map {PrintError("Cannot create \"$lib.exe\": no object $_") if not -f $_} ("$DELPHI_BLKD/delblkd.o");
@@ -1348,12 +1341,7 @@ sub MakeShorty {
@@ -1348,12 +1341,7 @@ sub MakeShorty {
@@ -1362,7 +1350,7 @@ sub MakeShorty {
@@ -1362,7 +1350,7 @@ sub MakeShorty {
my $command = "$F77{$OS} $FFLAGS $LDFLAGS $ADDFOPT -o $lib.exe *.f $DELPHI_BLKD/delblkd.o -v $dellib $cernlib";
@@ -1388,7 +1376,7 @@ sub MakeLongy {
@@ -1388,7 +1376,7 @@ sub MakeLongy {
@@ -1418,12 +1406,7 @@ sub MakeLongy {
@@ -1418,12 +1406,7 @@ sub MakeLongy {
@@ -1432,7 +1415,7 @@ sub MakeLongy {
@@ -1432,7 +1415,7 @@ sub MakeLongy {
my $command = "$F77{$OS} $FFLAGS $LDFLAGS $ADDFOPT -fbounds-check -o $lib.exe *.f $DELPHI_BLKD/delblkd.o -v $dellib $cernlib";