fix: use gfortran to make xbap survive

This commit is contained in:
kuoi 2023-04-13 21:41:46 +08:00
parent c48a3f3964
commit 3b42fb10b0
2 changed files with 6 additions and 5 deletions

View file

@ -53,7 +53,7 @@ XLFLAGS= $(XLIBS) $(FLIBS)
LD = gfortran
XLD = cc
LDFLAGS = -g -fdec -std=legacy
LDFLAGS = -g -fdec -std=legacy -L/usr/lib -lgfortran
#
# Avoid compilation of objects in remote directories
@ -367,7 +367,7 @@ bap: $(BAPOBJS)
$(LD) $(LDFLAGS) -o $@ $(BAPOBJS) $(LFLAGS)
xbap: $(XBAPOBJS)
$(XLD) $(LDFLAGS) -o $@ $(XBAPOBJS) $(XLFLAGS)
$(LD) $(LDFLAGS) -o $@ $(XBAPOBJS) $(XLFLAGS)
SAP=\
sap.o\

View file

@ -28,16 +28,17 @@ INCLUDES= -I$(SRC) -I$(TEDSRC) -I$(MISCSRC)
CC= cc
CFLAGS= -g $(INCLUDES)
F77= gfortran
FFLAGS= -g -fdec -std=legacy -C
FFLAGS= -g -fdec -std=legacy -L/usr/lib -lgfortran -C
FLIBS = -lutil -lm
#FLIBS= -lfor -lutil -lUfor -lots -lFutil -lm
XLIBS= -lXaw -lXt -lXmu -lXext -lX11
XLIBS= -lXaw -lXt -lXmu -lXext -lX11
LFLAGS= $(FLIBS)
XLFLAGS= $(FLIBS) $(XLIBS)
LD = gfortran
CLD = cc
CLD = gfortran
#CLD = cc
LDFLAGS = -g # Comment out for faster linking when debugging