fix Makefile in order to cross build from source in Debian
fixes https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=977569
This commit is contained in:
parent
4824735794
commit
db5ff8c356
1 changed files with 3 additions and 3 deletions
6
Makefile
6
Makefile
|
|
@ -15,7 +15,7 @@ OPTIM += -g
|
|||
OPTIM += -O3
|
||||
|
||||
CC = gcc
|
||||
LD = gcc
|
||||
LD = $(CC)
|
||||
INCLUDES = -I.
|
||||
CPPFLAGS = $(INCLUDES) $(DEFINES)
|
||||
CFLAGS = -Wall -Wformat-security $(OPTIM)
|
||||
|
|
@ -52,8 +52,8 @@ clean:
|
|||
|
||||
depend:
|
||||
(sed -n 'p; /^## Dependencies: (autogenerated) ##/q' Makefile && \
|
||||
gcc -MM $(CPPFLAGS) $(OBJS:.o=.c) && \
|
||||
gcc -MM $(CPPFLAGS) $(PLUGINS:.so=.c) | sed 's/\.o/.so/') >Makefile.tmp
|
||||
$(CC) -MM $(CPPFLAGS) $(OBJS:.o=.c) && \
|
||||
$(CC) -MM $(CPPFLAGS) $(PLUGINS:.so=.c) | sed 's/\.o/.so/') >Makefile.tmp
|
||||
mv Makefile Makefile.bak
|
||||
mv Makefile.tmp Makefile
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue