aboutsummaryrefslogtreecommitdiffstats
path: root/testing/pastebinc/buildfix.patch
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2017-12-22 17:00:49 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2017-12-22 17:00:49 +0000
commitd0ca197f031f96d4664cafaa618aeccf94640a1e (patch)
tree9fc75befe579054c069ecb74efc6c674fd4491c5 /testing/pastebinc/buildfix.patch
parentcda0900cf7dafe7ab3119b7cf612149a90df4937 (diff)
downloadaports-d0ca197f031f96d4664cafaa618aeccf94640a1e.tar.bz2
aports-d0ca197f031f96d4664cafaa618aeccf94640a1e.tar.xz
testing/pastebinc: resurrect
we had this in unmaintained and it got purged. ressurect it
Diffstat (limited to 'testing/pastebinc/buildfix.patch')
-rw-r--r--testing/pastebinc/buildfix.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/testing/pastebinc/buildfix.patch b/testing/pastebinc/buildfix.patch
new file mode 100644
index 0000000000..7b7880c5f8
--- /dev/null
+++ b/testing/pastebinc/buildfix.patch
@@ -0,0 +1,24 @@
+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)