Mercurial > hg > mxe-octave-anirudha
comparison src/readline-2-darwin.patch @ 3212:5fc65ca6f7c9
[Darwin] Fix compilation of GNU Readline for Mac OS X builds
* Contains patch to add SHOBJ_LDFLAG='-dynamiclib' instead of '-dynamic' for Mac OS X builds
author | Anirudha Bose <ani07nov@gmail.com> |
---|---|
date | Fri, 20 Sep 2013 03:03:30 +0530 |
parents | |
children | e51083cf2f46 |
comparison
equal
deleted
inserted
replaced
3211:9bedb9046700 | 3212:5fc65ca6f7c9 |
---|---|
1 This file is part of MXE. | |
2 See index.html for further information. | |
3 | |
4 Contains patch to add SHOBJ_LDFLAG='-dynamiclib' instead of '-dynamic' for Mac OS X builds | |
5 | |
6 diff --git a/support/shobj-conf b/support/shobj-conf | |
7 index c61dc78..4fd99d9 100644 | |
8 --- a/support/shobj-conf | |
9 +++ b/support/shobj-conf | |
10 @@ -186,10 +186,10 @@ darwin*|macosx*) | |
11 SHLIB_LIBSUFF='dylib' | |
12 | |
13 case "${host_os}" in | |
14 - darwin[789]*|darwin10*) SHOBJ_LDFLAGS='' | |
15 + darwin[789]*|darwin10*) SHOBJ_LDFLAGS='-dynamiclib' | |
16 SHLIB_XLDFLAGS='-dynamiclib -arch_only `/usr/bin/arch` -install_name $(libdir)/$@ -current_version | |
17 $(SHLIB_MAJOR)$(SHLIB_MINO$ | |
18 ;; | |
19 - *) SHOBJ_LDFLAGS='-dynamic' | |
20 + *) SHOBJ_LDFLAGS='-dynamiclib' | |
21 SHLIB_XLDFLAGS='-arch_only `/usr/bin/arch` -install_name $(libdir)/$@ -current_version $(SHLIB_MAJOR)$(SHLIB_MINOR) | |
22 -compatib$ | |
23 ;; | |
24 esac |