summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Ahlberg <aliz@gentoo.org>2003-11-27 16:20:55 +0000
committerDaniel Ahlberg <aliz@gentoo.org>2003-11-27 16:20:55 +0000
commita0d567d95a8c713c862a76940888a47444025d16 (patch)
tree518c825ffa11de7e43bb44d746ca6f8311cddb23 /dev-libs/libmcal/files
parentmake sure symlinks are created (diff)
downloadhistorical-a0d567d95a8c713c862a76940888a47444025d16.tar.gz
historical-a0d567d95a8c713c862a76940888a47444025d16.tar.bz2
historical-a0d567d95a8c713c862a76940888a47444025d16.zip
Closing #32951
Diffstat (limited to 'dev-libs/libmcal/files')
-rw-r--r--dev-libs/libmcal/files/libmcal-0.7-fpic.patch30
1 files changed, 30 insertions, 0 deletions
diff --git a/dev-libs/libmcal/files/libmcal-0.7-fpic.patch b/dev-libs/libmcal/files/libmcal-0.7-fpic.patch
new file mode 100644
index 000000000000..cedb6ebf0072
--- /dev/null
+++ b/dev-libs/libmcal/files/libmcal-0.7-fpic.patch
@@ -0,0 +1,30 @@
+--- Makefile.in 2003-11-27 15:46:46.887752568 +0000
++++ Makefile.in 2003-11-27 16:14:17.325847840 +0000
+@@ -7,7 +7,7 @@
+
+ INCLUDE=@DRIVER_INCDIR@ ${OTHERINCDIR} -I.
+
+-CFLAGS=-O0 -Wall -g ${INCLUDE} ${OTHER_CFLAGS}
++CFLAGS=-O0 -Wall -g ${OTHER_CFLAGS}
+
+ LIBOBJS=mcal.o datetime.o lex.ical_yy.o icalroutines.o cal_misc.o $(DRIVER_LIBS)
+ ALLOBJS=${LIBOBJS} tester.o
+@@ -17,6 +17,9 @@
+ LIBCAL=libmcal.a
+ LIBCAL_SO=libmcal.so
+
++%.o: %.c
++ gcc $(CFLAGS) -fPIC $(INCLUDE) -c -o $@ $<
++
+ all: libmcal.a libmcal.so
+
+ install: libmcal.a libmcal.so
+@@ -38,7 +41,7 @@
+
+ libmcal.so: $(LIBOBJS)
+ rm -f $(LIBCAL_SO)
+- gcc $(CFLAGS) -shared -o $(LIBCAL_SO) $(LIBOBJS)
++ gcc $(CFLAGS) $(INCLUDE) -shared -o $(LIBCAL_SO) $(LIBOBJS)
+
+ lex.ical_yy.c: icalscanner.lex
+ $(FLEX) $<