* Add bits for static linking.
This commit is contained in:
parent
745457e814
commit
f36047098c
1
Makefile
1
Makefile
@ -36,6 +36,7 @@ BASEOBJS = minidlna.o upnphttp.o upnpdescgen.o upnpsoap.o \
|
|||||||
ALLOBJS = $(BASEOBJS) $(LNXOBJS)
|
ALLOBJS = $(BASEOBJS) $(LNXOBJS)
|
||||||
|
|
||||||
LIBS = -lexif -ljpeg -lsqlite3 -lavformat -lid3tag -lFLAC -lvorbis
|
LIBS = -lexif -ljpeg -lsqlite3 -lavformat -lid3tag -lFLAC -lvorbis
|
||||||
|
#STATIC_LINKING: LIBS = -lvorbis -logg -lm -lsqlite3 -lpthread -lexif -ljpeg -lFLAC -lm -lid3tag -lz -lavformat -lavutil -lavcodec -lm
|
||||||
|
|
||||||
TESTUPNPDESCGENOBJS = testupnpdescgen.o upnpdescgen.o
|
TESTUPNPDESCGENOBJS = testupnpdescgen.o upnpdescgen.o
|
||||||
|
|
||||||
|
@ -184,6 +184,7 @@ getfriendlyname(char * buf, int len)
|
|||||||
#else
|
#else
|
||||||
char * logname;
|
char * logname;
|
||||||
logname = getenv("LOGNAME");
|
logname = getenv("LOGNAME");
|
||||||
|
#if 1 // Disable for static linking
|
||||||
if( !logname )
|
if( !logname )
|
||||||
{
|
{
|
||||||
struct passwd * pwent;
|
struct passwd * pwent;
|
||||||
@ -191,6 +192,7 @@ getfriendlyname(char * buf, int len)
|
|||||||
if( pwent )
|
if( pwent )
|
||||||
logname = pwent->pw_name;
|
logname = pwent->pw_name;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
strncat(buf, logname?logname:"Unknown", len-strlen(buf)-1);
|
strncat(buf, logname?logname:"Unknown", len-strlen(buf)-1);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user