* Add static linking hint.
This commit is contained in:
4
Makefile
4
Makefile
@ -16,6 +16,8 @@ CFLAGS = -Wall -g -O3 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 \
|
|||||||
-I/usr/include/ffmpeg \
|
-I/usr/include/ffmpeg \
|
||||||
-I/usr/include/libavutil -I/usr/include/libavcodec -I/usr/include/libavformat \
|
-I/usr/include/libavutil -I/usr/include/libavcodec -I/usr/include/libavformat \
|
||||||
-I/usr/include/ffmpeg/libavutil -I/usr/include/ffmpeg/libavcodec -I/usr/include/ffmpeg/libavformat
|
-I/usr/include/ffmpeg/libavutil -I/usr/include/ffmpeg/libavcodec -I/usr/include/ffmpeg/libavformat
|
||||||
|
#STATIC_LINKING: LDFLAGS = -static
|
||||||
|
LDFLAGS = -static
|
||||||
CC = gcc
|
CC = gcc
|
||||||
RM = rm -f
|
RM = rm -f
|
||||||
INSTALL = install
|
INSTALL = install
|
||||||
@ -59,7 +61,7 @@ install: minidlna
|
|||||||
|
|
||||||
minidlna: $(BASEOBJS) $(LNXOBJS) $(LIBS)
|
minidlna: $(BASEOBJS) $(LNXOBJS) $(LIBS)
|
||||||
@echo Linking $@
|
@echo Linking $@
|
||||||
@$(CC) $(CFLAGS) -o $@ $(BASEOBJS) $(LNXOBJS) $(LIBS)
|
@$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(BASEOBJS) $(LNXOBJS) $(LIBS)
|
||||||
|
|
||||||
|
|
||||||
testupnpdescgen: $(TESTUPNPDESCGENOBJS)
|
testupnpdescgen: $(TESTUPNPDESCGENOBJS)
|
||||||
|
Reference in New Issue
Block a user