no need of GTK to build idle.so
put LDFLAGS at the end of command (better this way). Fixes #1930
This commit is contained in:
parent
99f8b6aee9
commit
87fa2c0a5d
|
@ -6,19 +6,18 @@ HAVE_XSCRNSAVER = $(shell pkg-config --exists xscrnsaver && echo 'YES')
|
||||||
|
|
||||||
ifeq ($(HAVE_XSCRNSAVER),YES)
|
ifeq ($(HAVE_XSCRNSAVER),YES)
|
||||||
# We link with libXScrnsaver from modular X.Org X11
|
# We link with libXScrnsaver from modular X.Org X11
|
||||||
gtk_and_x_CFLAGS = `pkg-config --cflags gtk+-2.0 pygtk-2.0 xscrnsaver` -fpic -I/usr/include/python$(PYTHONVER) -I.
|
x_CFLAGS = `pkg-config --cflags xscrnsaver` -fpic -I/usr/include/python$(PYTHONVER) -I.
|
||||||
gtk_and_x_LDFLAGS = `pkg-config --libs gtk+-2.0 pygtk-2.0 xscrnsaver` -lpython$(PYTHONVER)
|
x_LDFLAGS = `pkg-config --libs xscrnsaver` -lpython$(PYTHONVER)
|
||||||
else
|
else
|
||||||
# # We link with libXScrnsaver from monolithic X.Org X11
|
# # We link with libXScrnsaver from monolithic X.Org X11
|
||||||
gtk_and_x_CFLAGS = `pkg-config --cflags gtk+-2.0 pygtk-2.0` -fpic -I/usr/include/python$(PYTHONVER) -I.
|
x_CFLAGS = -fpic -I/usr/include/python$(PYTHONVER) -I.
|
||||||
gtk_and_x_LDFLAGS = `pkg-config --libs gtk+-2.0 pygtk-2.0` \
|
x_LDFLAGS = -L/usr/X11R6$(LIBDIR) -lX11 -lXss -lXext -lpython$(PYTHONVER)
|
||||||
-L/usr/X11R6$(LIBDIR) -lX11 -lXss -lXext -lpython$(PYTHONVER)
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
all: idle.so
|
all: idle.so
|
||||||
|
|
||||||
idle.so:
|
idle.so:
|
||||||
$(CC) $(OPTFLAGS) $(CFLAGS) $(LDFLAGS) $(gtk_and_x_CFLAGS) $(gtk_and_x_LDFLAGS) -shared idle.c $^ -o $@
|
$(CC) $(OPTFLAGS) $(CFLAGS) $(x_CFLAGS) -shared idle.c $^ -o $@ $(LDFLAGS) $(x_LDFLAGS)
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f *.so
|
rm -f *.so
|
||||||
|
|
Loading…
Reference in New Issue