1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-20 09:45:12 +03:00
aports/testing/pastebinc/buildfix.patch
Natanael Copa d0ca197f03 testing/pastebinc: resurrect
we had this in unmaintained and it got purged. ressurect it
2017-12-22 17:00:49 +00:00

24 lines
636 B
Diff

diff --git a/Makefile b/Makefile
index 3b9055d..841a999 100644
--- a/Makefile
+++ b/Makefile
@@ -15,8 +15,8 @@ CFLAGS += -DVERSION=\"$(VERSION)$(GIT_VERSION)\"
CFLAGS += -DCONFDIR=\"$(CONFDIR)\"
CFLAGS += $(shell pkg-config --cflags glib-2.0)
-LIBS ?= -lcurl
-LIBS += $(shell pkg-config --libs glib-2.0)
+LIBS ?= $(shell pkg-config --libs libcurl)
+LIBS += $(shell pkg-config --libs glib-2.0)
CC ?= gcc
@@ -33,7 +33,7 @@ all: $(TARGETS)
#
pastebinc:
- $(CC) -fPIC $(CFLAGS) $(LIBS) -o $(PROGNAME) pastebinc.c
+ $(CC) -fPIC $(CFLAGS) -o $(PROGNAME) pastebinc.c $(LIBS)
clean:
rm -f *.o *.out $(PROGNAME)