To resolve the symbol XOpenDisplay link with libX11

When building the timeoutd binary the linker was not
finding the XOpenDisplay symbol.  By linking with
libX11 the missing symbol is found

Signed-off-by: Clark Rawlins <clark@defiant.bit63.org>
This commit is contained in:
Clark Rawlins 2014-12-14 09:03:42 -08:00 committed by Clark Rawlins
parent eeeb4d4f97
commit f8a3bc0509

View file

@ -2,7 +2,7 @@ CFLAGS=-fomit-frame-pointer -O2 -s -g -Wall
timeoutd: timeoutd.c Makefile timeoutd: timeoutd.c Makefile
#$(CC) $(CFLAGS) -o timeoutd timeoutd.c #$(CC) $(CFLAGS) -o timeoutd timeoutd.c
$(CC) $(CFLAGS) -o timeoutd.o -c timeoutd.c -DTIMEOUTDX11 $(CC) $(CFLAGS) -o timeoutd.o -c timeoutd.c -DTIMEOUTDX11
$(CC) $(CFLAGS) -o timeoutd -L/usr/X11R6/lib timeoutd.o -lXss -lXext $(CC) $(CFLAGS) -o timeoutd -L/usr/X11R6/lib timeoutd.o -lXss -lXext -lX11
install: install: