summaryrefslogtreecommitdiff
blob: c8432c2058452e1e891e0c855f8c7afebb0868a0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
--- giflib-5.1.6/Makefile
+++ giflib-5.1.6/Makefile
@@ -61,12 +61,11 @@
 LDLIBS=libgif.a -lm
 
 all: libgif.so libgif.a $(UTILS)
-	$(MAKE) -C doc
 
 $(UTILS):: libgif.a
 
 libgif.so: $(OBJECTS) $(HEADERS)
-	$(CC) $(CFLAGS) -shared $(OFLAGS) -o libgif.so $(OBJECTS)
+	$(CC) $(CFLAGS) -shared $(LDFLAGS) -Wl,-soname,libgif.so.$(LIBMAJOR) -o libgif.so $(OBJECTS)
 
 libgif.a: $(OBJECTS) $(HEADERS)
 	ar rcs libgif.a $(OBJECTS)