Magellan Linux

Diff of /trunk/core/perl/perl-5.28.1-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 31548 by niro, Fri Nov 30 08:26:49 2018 UTC revision 31553 by niro, Fri Nov 30 09:29:09 2018 UTC
# Line 20  DEPEND="$(marchdepend) Line 20  DEPEND="$(marchdepend)
20  SRCFILE="${PNAME}-${PVER}.tar.gz"  SRCFILE="${PNAME}-${PVER}.tar.gz"
21  SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"  SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
22    
23    EMUL_LINUX_32=true
24  sminclude multilib  sminclude multilib
25  msetfeature "!check"  msetfeature "!check"
26    
# Line 40  src_prepare() Line 41  src_prepare()
41   cd ${SRCDIR}   cd ${SRCDIR}
42    
43   # enable dynamic loader   # enable dynamic loader
44   mpatch ${PNAME}-5.10.1-picdl.patch || die  # mpatch ${PNAME}-5.10.1-picdl.patch || die
45    
46   # and proper ldflags for shrlibs   # and proper ldflags for shrlibs
47   mpatch ${PNAME}-5.8.7-sharedlinker.patch || die  # mpatch ${PNAME}-5.8.7-sharedlinker.patch || die
48    
49   if [[ $(mlibdir) != lib ]]   if [[ $(mlibdir) != lib ]]
50   then   then
# Line 62  src_prepare() Line 63  src_prepare()
63    
64  src_compile()  src_compile()
65  {  {
66     # from gentoo:
67     # set a hook to check for each detected library whether it actually works.
68     export libscheck="
69     ( echo 'main(){}' > '${SRCDIR}'/conftest.c &&
70      ${CC} -o '${SRCDIR}'/conftest '${SRCDIR}'/conftest.c -l\$thislib >/dev/null 2>/dev/null
71     ) || xxx=/dev/null"
72    
73   all-abis ./Configure \   all-abis ./Configure \
74   -des \   -des \
75   -Darchname=${CHOST} \   -Darchname='"${CHOST}"' \
76   -Doptimize='"${CFLAGS}"' \   -Doptimize='"${CFLAGS}"' \
77     -Dldflags='"${LDFLAGS}"' \
78   -Dcc='"${CC}"' \   -Dcc='"${CC}"' \
79   -Dcccdlflags='-fPIC' \   -Dcccdlflags='-fPIC' \
80   -Dccdlflags='-rdynamic' \   -Dccdlflags='-rdynamic' \
# Line 82  src_compile() Line 91  src_compile()
91   -Dinstallman3dir=/usr/share/man/man3 \   -Dinstallman3dir=/usr/share/man/man3 \
92   -Dman1ext='1' \   -Dman1ext='1' \
93   -Dman3ext='3pm' \   -Dman3ext='3pm' \
94   -Dlibpth='"/usr/local/$(mlibdir) /$(mlibdir) /usr/$(mlibdir)"' \   -Dlibpth='"/usr/local/$(mlibdir) /$(mlibdir) /usr/$(mlibdir) "' \
95     -Dglibpth='"/$(mlibdir) /usr/$(mlibdir) "' \
96     -Dlocincpth='/usr/include ' \
97   || die   || die
98    
99   mmake || die   mmake || die

Legend:
Removed from v.31548  
changed lines
  Added in v.31553