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:
Julien Rabier 2020-12-17 10:16:29 +01:00
parent 4824735794
commit db5ff8c356

View file

@ -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