Moved these packages into Fedora.
[fedora-mingw.git] / readline / readline-5.2-shlib.patch
1 --- readline-5.2/support/shlib-install.shlib    2006-01-03 20:06:27.000000000 +0100
2 +++ readline-5.2/support/shlib-install  2006-11-13 13:51:02.000000000 +0100
3 @@ -71,7 +71,7 @@
4  case "$host_os" in
5  hpux*|darwin*|macosx*|linux*)
6         if [ -z "$uninstall" ]; then
7 -               chmod 555 ${INSTALLDIR}/${LIBNAME}
8 +               chmod 755 ${INSTALLDIR}/${LIBNAME}
9         fi ;;
10  cygwin*)
11         IMPLIBNAME=`echo ${LIBNAME} \
12 --- readline-5.2/support/shobj-conf.shlib       2006-04-11 15:15:43.000000000 +0200
13 +++ readline-5.2/support/shobj-conf     2007-03-15 14:11:36.000000000 +0100
14 @@ -108,10 +108,11 @@
15  linux*-*|gnu*-*|k*bsd*-gnu-*)
16         SHOBJ_CFLAGS=-fPIC
17         SHOBJ_LD='${CC}'
18 -       SHOBJ_LDFLAGS='-shared -Wl,-soname,$@'
19 +       SHOBJ_LDFLAGS='$(CFLAGS) -shared -Wl,-soname,$@'
20  
21 -       SHLIB_XLDFLAGS='-Wl,-rpath,$(libdir) -Wl,-soname,`basename $@ $(SHLIB_MINOR)`'
22 +       SHLIB_XLDFLAGS='-Wl,-soname,`basename $@ $(SHLIB_MINOR)`'
23         SHLIB_LIBVERSION='$(SHLIB_LIBSUFF).$(SHLIB_MAJOR)$(SHLIB_MINOR)'
24 +       SHLIB_LIBS='-ltinfo'
25         ;;
26  
27  freebsd2* | netbsd*)
28 --- readline-5.2/shlib/Makefile.in.shlib        2005-08-12 05:56:10.000000000 +0200
29 +++ readline-5.2/shlib/Makefile.in      2007-11-05 18:59:14.000000000 +0100
30 @@ -168,7 +168,7 @@ $(SHARED_READLINE): $(SHARED_OBJ)
31  
32  $(SHARED_HISTORY):     $(SHARED_HISTOBJ) xmalloc.so
33         $(RM) $@
34 -       $(SHOBJ_LD) ${SHOBJ_LDFLAGS} ${SHLIB_XLDFLAGS} -o $@ $(SHARED_HISTOBJ) xmalloc.so $(SHLIB_LIBS)
35 +       $(SHOBJ_LD) ${SHOBJ_LDFLAGS} ${SHLIB_XLDFLAGS} -o $@ $(SHARED_HISTOBJ) xmalloc.so
36  
37  # Since tilde.c is shared between readline and bash, make sure we compile 
38  # it with the right flags when it's built as part of readline