void-packages/srcpkgs/linux-wifi-hotspot/patches/makefile.patch

24 lines
645 B
Diff

--- a/src/Makefile
+++ b/src/Makefile
@@ -1,7 +1,7 @@
CC=gcc
PKGCONFIG = $(shell which pkg-config)
-CFLAGS=`pkg-config --cflags gtk+-3.0`
+CFLAGS_PKGCONF=`pkg-config --cflags gtk+-3.0`
LIBS=`pkg-config --libs gtk+-3.0 --libs x11` -lstdc++ -lpng -lqrencode
APP_NAME="wihotspot"
@@ -32,10 +32,10 @@ resources.c: ui/glade/wifih.gresource.xml ui/glade/wifih.ui
@$(MAKE) -f $(THIS_FILE) wihotspot-gui
$(ODIR)/%.o: ui/%.c
- $(CC) -c -o $@ $< $(CFLAGS)
+ $(CC) -c -o $@ $< $(CFLAGS) $(CFLAGS_PKGCONF)
$(ODIR)/%.o: ui/%.cpp
- g++ -c -o $@ $<
+ $(CXX) -c -o $@ $< $(CXXFLAGS)
wihotspot-gui: $(OBJ)
$(CC) -o $(ODIR)/$@ $^ $(CFLAGS) $(LIBS)