blob: e17575267d6e430127377bb3a21882103c1c7f1f (
plain)
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
|
--- GDALmake.opt.in.orig 2008-02-02 18:25:48.000000000 -0800
+++ GDALmake.opt.in 2008-02-02 18:54:53.000000000 -0800
@@ -97,6 +97,10 @@
GDAL_SLIB = $(GDAL_ROOT)/libgdal.$(SO_EXT)
GDAL_SLIB_LINK = -L$(GDAL_ROOT) -lgdal
+# for building without libtool
+GDAL_SLIB_SO_VER = $(GDAL_VERSION_MAJOR).$(LIBGDAL_CURRENT).$(LIBGDAL_REVISION)
+GDAL_SLIB_SONAME = -install_name $(INST_LIB)/libgdal.$(GDAL_VERSION_MAJOR).$(SO_EXT)
+
# Mac OS X Framework definition
MACOSX_FRAMEWORK = @MACOSX_FRAMEWORK@
--- GNUmakefile.orig 2010-03-09 14:03:08 +0100
+++ GNUmakefile 2010-03-09 14:05:29 +0100
@@ -218,7 +218,7 @@
ifeq ($(HAVE_LD_SHARED),yes)
-GDAL_SLIB_B = $(notdir $(GDAL_SLIB))
+GDAL_SLIB_B = libgdal
install-lib:
@@ -226,14 +226,14 @@
ifeq ($(MACOSX_FRAMEWORK),yes)
$(INSTALL_LIB) $(GDAL_SLIB) $(DESTDIR)$(INST_LIB)/GDAL
else
- rm -f $(DESTDIR)$(INST_LIB)/$(GDAL_SLIB_B)
- rm -f $(DESTDIR)$(INST_LIB)/$(GDAL_SLIB_B).$(GDAL_VERSION_MAJOR)
- rm -f $(DESTDIR)$(INST_LIB)/$(GDAL_SLIB_B).$(GDAL_VER)
- $(INSTALL_LIB) $(GDAL_SLIB) $(DESTDIR)$(INST_LIB)/$(GDAL_SLIB_B).$(GDAL_VER)
+ rm -f $(DESTDIR)$(INST_LIB)/$(GDAL_SLIB_B).dylib
+ rm -f $(DESTDIR)$(INST_LIB)/$(GDAL_SLIB_B).$(GDAL_VERSION_MAJOR).dylib
+ rm -f $(DESTDIR)$(INST_LIB)/$(GDAL_SLIB_B).$(GDAL_VER).dylib
+ $(INSTALL_LIB) $(GDAL_SLIB) $(DESTDIR)$(INST_LIB)/$(GDAL_SLIB_B).$(GDAL_VER).dylib
(cd $(DESTDIR)$(INST_LIB) ; \
- ln -s $(GDAL_SLIB_B).$(GDAL_VER) $(GDAL_SLIB_B).$(GDAL_VERSION_MAJOR))
+ ln -s $(GDAL_SLIB_B).$(GDAL_VER).dylib $(GDAL_SLIB_B).$(GDAL_VERSION_MAJOR).dylib)
(cd $(DESTDIR)$(INST_LIB) ; \
- ln -s $(GDAL_SLIB_B).$(GDAL_VERSION_MAJOR) $(GDAL_SLIB_B))
+ ln -s $(GDAL_SLIB_B).$(GDAL_VERSION_MAJOR).dylib $(GDAL_SLIB_B).dylib)
endif
else
|