Skip to content
Snippets Groups Projects
Commit 6f00e833 authored by rswindell's avatar rswindell
Browse files

--output-lib invalid linker command in Linux.

parent e6487255
No related branches found
No related tags found
No related merge requests found
......@@ -28,6 +28,7 @@ LIBDIR := /gcc/i386-mingw32/lib
CFLAGS := -mno-cygwin
LFLAGS := --target=i386-mingw32 -mno-cygwin
DELETE = echo y | del
OUTLIB = --output-lib
else # Linux
......@@ -40,6 +41,7 @@ LIBDIR := /usr/lib
CFLAGS :=
LFLAGS :=
DELETE = rm -f -v
OUTLIB = -o
endif
......@@ -80,15 +82,15 @@ $(EXEODIR):
# SBBS Link Rule
$(SBBS): $(OBJS) $(LIBODIR)/ver.o
$(LD) $(LFLAGS) -o $(SBBS) $^ $(LIBS) --output-lib $(SBBSLIB)
$(LD) $(LFLAGS) -o $(SBBS) $^ $(LIBS) $(OUTLIB) $(SBBSLIB)
# FTP Server Link Rule
$(FTPSRVR): $(LIBODIR)/ftpsrvr.o $(SBBSLIB)
$(LD) $(LFLAGS) -o $@ $^ $(LIBS) --output-lib $(LIBODIR)/ftpsrvr.a
$(LD) $(LFLAGS) -o $@ $^ $(LIBS) $(OUTLIB) $(LIBODIR)/ftpsrvr.a
# Mail Server Link Rule
$(MAILSRVR): $(LIBODIR)/mailsrvr.o $(LIBODIR)/mxlookup.o $(SBBSLIB)
$(LD) $(LFLAGS) -o $@ $^ $(LIBS) --output-lib $(LIBODIR)/mailsrvr.a
$(LD) $(LFLAGS) -o $@ $^ $(LIBS) $(OUTLIB) $(LIBODIR)/mailsrvr.a
# Specifc Compile Rules
$(LIBODIR)/ftpsrvr.o: ftpsrvr.c ftpsrvr.h
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment