File: linux-makefile.diff

package info (click to toggle)
libmng 1.0.10-3
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 6,396 kB
  • sloc: ansic: 78,320; pascal: 3,559; cpp: 2,624; sh: 937; makefile: 158
file content (67 lines) | stat: -rw-r--r-- 1,786 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
Description: Fix for Linux's makefile for 1.0.10
Author: Kartik Mistry <kartik@debian.org>
Forwarded: https://sourceforge.net/tracker/?func=detail&aid=3015139&group_id=5635&atid=105635
Last-Update: 2010-06-12

--- libmng-1.0.10.orig/makefiles/makefile.linux
+++ libmng-1.0.10/makefiles/makefile.linux
@@ -14,25 +14,25 @@ CC=gcc
 OPTIONS = -DMNG_BUILD_SO -DMNG_FULL_CMS
 
 # where "make install" puts libmng.a,libmng.so*,libmng.h,libmng_conf.h,libmng_types.h
-prefix=/usr/local
+prefix=/usr
 
 # Where the zlib library and include files are located
 #ZLIBLIB=../zlib
 #ZLIBINC=../zlib
-ZLIBLIB=/usr/local/lib
-ZLIBINC=/usr/local/include
+ZLIBLIB=/usr/lib
+ZLIBINC=/usr/include
 
 # Where the jpeg library and include files are located
 #JPEGLIB=../jpgsrc
 #JPEGINC=../jpgsrc
-JPEGLIB=/usr/local/lib
-JPEGINC=/usr/local/include
+JPEGLIB=/usr/lib
+JPEGINC=/usr/include
 
 # Where the lcms library and include files are located
 #LCMSLIB=../lcms/lib
 #LCMSINC=../lcms/source
-LCMSLIB=/usr/local/lib
-LCMSINC=/usr/local/include
+LCMSLIB=/usr/lib
+LCMSINC=/usr/include
 
 ALIGN=
 # for i386:
@@ -44,7 +44,7 @@ WARNMORE=-Wwrite-strings -Wpointer-arith
 
 # for pgcc version 2.95.1, -O3 is buggy; don't use it.
 
-CFLAGS=-I$(ZLIBINC) -I$(JPEGINC) -I$(LCMSINC) -Wall -O3 -funroll-loops \
+CFLAGS=-I$(ZLIBINC) -I$(JPEGINC) -I$(LCMSINC) -Wall -O3 -fPIC -funroll-loops \
 	$(OPTIONS) $(ALIGN) # $(WARNMORE) -g
 LDFLAGS=-L. -Wl,-rpath,. \
 	-L$(ZLIBLIB) -Wl,-rpath,$(ZLIBLIB) \
@@ -57,7 +57,7 @@ RANLIB=ranlib
 
 # current version numbers
 MNGMAJ = 1
-MNGMIN = 1.0.9
+MNGMIN = 1.0.10
 MNGVER = $(MNGMAJ).$(MNGMIN)
 
 INCPATH=$(prefix)/include
@@ -84,7 +84,7 @@ OBJS = \
 	libmng_write.o \
 	libmng_zlib.o
 
-OBJSDLL = $(OBJS:.0=.pic.o)
+OBJSDLL = $(OBJS:.o=.pic.o)
 
 .SUFFIXES:      .c .o .pic.o