diff options
author | Andrzej Hunt <andrzej@ahunt.org> | 2015-06-03 21:28:24 +0100 |
---|---|---|
committer | Andrzej Hunt <andrzej@ahunt.org> | 2015-10-20 18:18:42 +0200 |
commit | 5c342b7db1e13896f9ca022513e7e596e9b49ef5 (patch) | |
tree | a9079852e426686affa8f51eb73284d4fea6722f | |
parent | 3c36fd800c06b163ab2862b6067c751b7b9dd1ac (diff) |
Fix udunits2 install_name on OSX
Change-Id: I048d23d647a6d6f38efddc11f7d3bde3b583e752
-rw-r--r-- | RepositoryExternal.mk | 2 | ||||
-rw-r--r-- | external/udunits2/UnpackedTarball_udunits2.mk | 6 | ||||
-rw-r--r-- | external/udunits2/udunits2-macosx.patch.1 | 27 |
3 files changed, 34 insertions, 1 deletions
diff --git a/RepositoryExternal.mk b/RepositoryExternal.mk index 1510ee50acf1..c61be00135b7 100644 --- a/RepositoryExternal.mk +++ b/RepositoryExternal.mk @@ -177,7 +177,7 @@ $(call gb_LinkTarget_add_libs,$(1),\ ) else $(call gb_LinkTarget_add_libs,$(1),\ - -L$(call gb_UnpackedTarball_get_dir,udunits2)/lib -ludunits2 \ + -L$(call gb_UnpackedTarball_get_dir,udunits2)/lib/.libs -ludunits2 \ ) endif diff --git a/external/udunits2/UnpackedTarball_udunits2.mk b/external/udunits2/UnpackedTarball_udunits2.mk index db096ca51446..820472e80af3 100644 --- a/external/udunits2/UnpackedTarball_udunits2.mk +++ b/external/udunits2/UnpackedTarball_udunits2.mk @@ -11,4 +11,10 @@ $(eval $(call gb_UnpackedTarball_UnpackedTarball,udunits2)) $(eval $(call gb_UnpackedTarball_set_tarball,udunits2,$(UDUNITS2_TARBALL))) +ifeq ($(OS),MACOSX) +$(eval $(call gb_UnpackedTarball_add_patches,udunits2,\ + external/udunits2/udunits2-macosx.patch.1 \ +)) +endif + # vim: set noet sw=4 ts=4: diff --git a/external/udunits2/udunits2-macosx.patch.1 b/external/udunits2/udunits2-macosx.patch.1 new file mode 100644 index 000000000000..0b6fb4e7965c --- /dev/null +++ b/external/udunits2/udunits2-macosx.patch.1 @@ -0,0 +1,27 @@ +diff -ur udunits2.org/configure udunits2/configure +--- udunits2.org/configure 2015-06-03 21:24:12.440541277 +0100 ++++ udunits2/configure 2015-06-03 21:25:59.873829068 +0100 +@@ -10254,9 +10254,9 @@ + esac + if test "$_lt_dar_can_shared" = "yes"; then + output_verbose_link_cmd=func_echo_all +- archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" ++ archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name @__________________________________________________OOO/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" + module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" +- archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" ++ archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name @__________________________________________________OOO/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" + module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" + + else +@@ -14000,9 +14000,9 @@ + esac + if test "$_lt_dar_can_shared" = "yes"; then + output_verbose_link_cmd=func_echo_all +- archive_cmds_FC="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" ++ archive_cmds_FC="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name @__________________________________________________OOO/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" + module_cmds_FC="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" +- archive_expsym_cmds_FC="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" ++ archive_expsym_cmds_FC="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name @__________________________________________________OOO/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" + module_expsym_cmds_FC="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" + + else |