From 3def49f94cc2c87acb92231cc8635f7c45d29abe Mon Sep 17 00:00:00 2001 From: Andreas Frisch Date: Sat, 15 Apr 2017 17:14:32 +0200 Subject: [PATCH] fix build on ubuntu(-ish) distros --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index efe01bf..fde946b 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ CC ?= gcc PKGCONFIG = $(shell which pkg-config) -CFLAGS = $(shell $(PKGCONFIG) --cflags gtk+-3.0 gstreamer-1.0 gstreamer-video-1.0 gstreamer-app-1.0 libgphoto2 libcurl x11 libcanberra-gtk3) -Wl,--export-dynamic -rdynamic -g -LIBS = $(shell $(PKGCONFIG) --libs gtk+-3.0 gstreamer-1.0 gstreamer-video-1.0 gstreamer-app-1.0 libgphoto2 gmodule-export-2.0 libcurl x11 libcanberra-gtk3) +CFLAGS = $(shell $(PKGCONFIG) --cflags gtk+-3.0 gstreamer-1.0 gstreamer-video-1.0 gstreamer-app-1.0 libgphoto2 libcurl x11 libcanberra-gtk3 json-glib-1.0) -Wl,--export-dynamic -rdynamic -g +LIBS = $(shell $(PKGCONFIG) --libs gtk+-3.0 gstreamer-1.0 gstreamer-video-1.0 gstreamer-app-1.0 libgphoto2 gmodule-export-2.0 libcurl x11 libcanberra-gtk3 json-glib-1.0) GLIB_COMPILE_RESOURCES = $(shell $(PKGCONFIG) --variable=glib_compile_resources gio-2.0) SRC = photobooth.c photoboothwin.c focus.c photoboothled.c @@ -18,7 +18,7 @@ resources.c: photobooth.gresource.xml $(shell $(GLIB_COMPILE_RESOURCES) --source $(CC) -c -o $(@F) $(CFLAGS) $< photobooth: $(OBJS) - $(CC) -o $(@F) $(LIBS) $(OBJS) + $(CC) -o $(@F) $(OBJS) $(LIBS) clean: rm -f $(BUILT_SRC)