mirror of
https://github.com/cc65/cc65.git
synced 2025-01-26 17:36:57 +00:00
Patch to correct the linkorder in the make files to make the --as-needed
ldflag work. By Mario Fetka. git-svn-id: svn://svn.cc65.org/cc65/trunk@4838 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
parent
f1ce44edfe
commit
6c0a9c0438
@ -51,7 +51,7 @@ all: depend
|
||||
endif
|
||||
|
||||
$(EXE): $(OBJS) $(LIBS)
|
||||
$(CC) $^ $(LDFLAGS) -o $@
|
||||
$(CC) $(LDFLAGS) $^ -o $@
|
||||
@if [ $(OS2_SHELL) ] ; then $(EBIND) $(EXE) ; fi
|
||||
|
||||
clean:
|
||||
|
@ -93,7 +93,7 @@ all: depend
|
||||
endif
|
||||
|
||||
$(EXE): $(INCS) $(OBJS) $(LIBS)
|
||||
$(CC) $(OBJS) $(LIBS) $(LDFLAGS) -o $@
|
||||
$(CC) $(LDFLAGS) $(OBJS) $(LIBS) -o $@
|
||||
@if [ $(OS2_SHELL) ] ; then $(EBIND) $(EXE) ; fi
|
||||
|
||||
inc: $(INCS)
|
||||
|
@ -127,7 +127,7 @@ all: depend
|
||||
endif
|
||||
|
||||
$(EXE): $(OBJS) $(LIBS)
|
||||
$(CC) $(OBJS) $(LIBS) $(LDFLAGS) -o $@
|
||||
$(CC) $(LDFLAGS) $(OBJS) $(LIBS) -lm -o $@
|
||||
@if [ $(OS2_SHELL) ] ; then $(EBIND) $(EXE) ; fi
|
||||
|
||||
.PHONY: svnversion
|
||||
|
@ -44,7 +44,7 @@ all: depend
|
||||
endif
|
||||
|
||||
$(EXE): $(OBJS) $(LIBS)
|
||||
$(CC) $^ $(LDFLAGS) -o $@
|
||||
$(CC) $(LDFLAGS) $^ -o $@
|
||||
@if [ $(OS2_SHELL) ] ; then $(EBIND) $(EXE) ; fi
|
||||
|
||||
clean:
|
||||
|
@ -44,7 +44,7 @@ all: depend
|
||||
endif
|
||||
|
||||
$(EXE): $(OBJS) $(LIBS)
|
||||
$(CC) $^ $(LDFLAGS) -o $@
|
||||
$(CC) $(LDFLAGS) $^ -o $@
|
||||
@if [ $(OS2_SHELL) ] ; then $(EBIND) $(EXE) ; fi
|
||||
|
||||
clean:
|
||||
|
@ -59,7 +59,7 @@ all: depend
|
||||
endif
|
||||
|
||||
$(EXE): $(OBJS) $(LIBS)
|
||||
$(CC) $^ $(LDFLAGS) -o $@
|
||||
$(CC) $(LDFLAGS) $^ -o $@
|
||||
@if [ $(OS2_SHELL) ] ; then $(EBIND) $(EXE) ; fi
|
||||
|
||||
clean:
|
||||
|
@ -38,7 +38,7 @@ all: depend
|
||||
endif
|
||||
|
||||
$(EXE): $(OBJS) $(LIBS)
|
||||
$(CC) $^ $(LDFLAGS) -o $@
|
||||
$(CC) $(LDFLAGS) $^ -o $@
|
||||
@if [ $(OS2_SHELL) ] ; then $(EBIND) $(EXE) ; fi
|
||||
|
||||
clean:
|
||||
|
@ -100,7 +100,7 @@ all: depend
|
||||
endif
|
||||
|
||||
$(EXE): $(INCS) $(OBJS) $(LIBS)
|
||||
$(CC) $(OBJS) $(LIBS) $(LDFLAGS) -o $@
|
||||
$(CC) $(LDFLAGS) $(OBJS) $(LIBS) -o $@
|
||||
@if [ $(OS2_SHELL) ] ; then $(EBIND) $(EXE) ; fi
|
||||
|
||||
inc: $(INCS)
|
||||
|
@ -44,7 +44,7 @@ all: depend
|
||||
endif
|
||||
|
||||
$(EXE): $(OBJS) $(LIBS)
|
||||
$(CC) $^ $(LDFLAGS) -o $@
|
||||
$(CC) $(LDFLAGS) $^ -o $@
|
||||
@if [ $(OS2_SHELL) ] ; then $(EBIND) $(EXE) ; fi
|
||||
|
||||
clean:
|
||||
|
@ -53,7 +53,7 @@ all: depend
|
||||
endif
|
||||
|
||||
$(EXE): $(OBJS) $(LIBS)
|
||||
$(CC) $^ $(LDFLAGS) -o $@
|
||||
$(CC) $(LDFLAGS) $^ -o $@
|
||||
@if [ $(OS2_SHELL) ] ; then $(EBIND) $(EXE) ; fi
|
||||
|
||||
.PHONY: chips
|
||||
|
Loading…
x
Reference in New Issue
Block a user