Lines 104-109
Link Here
|
104 |
ewarn "" |
104 |
ewarn "" |
105 |
epause 10 |
105 |
epause 10 |
106 |
fi |
106 |
fi |
|
|
107 |
|
108 |
if tc-is-cross-compiler ; then |
109 |
ewarn "It appears you are cross-compiling ${PN}." |
110 |
ewarn "You must have libperl-${PV} (>=libperl-5.8.8-r3) and" |
111 |
ewarn "perl-${PV} (>=perl-5.8.8-r9) installed on your" |
112 |
ewarn "native build system or this build might fail." |
113 |
epause 5 |
114 |
fi |
107 |
} |
115 |
} |
108 |
|
116 |
|
109 |
src_unpack() { |
117 |
src_unpack() { |
Lines 155-160
Link Here
|
155 |
# Respect CFLAGS even for linking when done with compiler |
163 |
# Respect CFLAGS even for linking when done with compiler |
156 |
epatch "${FILESDIR}"/${P}-ccld-cflags.patch |
164 |
epatch "${FILESDIR}"/${P}-ccld-cflags.patch |
157 |
|
165 |
|
|
|
166 |
# Check the environment for {PERL_LIB}, {PERL_ARCHLIB} |
167 |
# and {PERL_INC} and use relative headers |
168 |
epatch "${FILESDIR}"/native-perlinc.patch |
169 |
|
170 |
# Dynamically load modules from ${PERLHOSTLIB} to |
171 |
# use while compiling |
172 |
epatch "${FILESDIR}"/perl-dynloader.patch |
173 |
|
174 |
# Use Config_heavy.pl from ${PERL_ARCHLIB} |
175 |
epatch "${FILESDIR}"/perl-configpm-switch.patch |
176 |
|
177 |
if tc-is-cross-compiler; then |
178 |
# Use ${HOSTPERL}, not miniperl, for cross-compiling |
179 |
epatch "${FILESDIR}"/Makefile.SH.patch |
180 |
|
181 |
epatch "${FILESDIR}"/perl-moreconfig.patch |
182 |
epatch "${FILESDIR}"/letgcc-find-errno.patch |
183 |
fi |
184 |
|
158 |
# Respect LDFLAGS |
185 |
# Respect LDFLAGS |
159 |
sed -e 's/$(SHRPLDFLAGS)/& $(LDFLAGS)/' -i Makefile.SH |
186 |
sed -e 's/$(SHRPLDFLAGS)/& $(LDFLAGS)/' -i Makefile.SH |
160 |
} |
187 |
} |
Lines 261-285
Link Here
|
261 |
myconf "-Dlibpth=/usr/local/$(get_libdir) /$(get_libdir) /usr/$(get_libdir)" |
288 |
myconf "-Dlibpth=/usr/local/$(get_libdir) /$(get_libdir) /usr/$(get_libdir)" |
262 |
fi |
289 |
fi |
263 |
|
290 |
|
264 |
sh Configure -des \ |
291 |
if tc-is-cross-compiler; then |
265 |
-Darchname="${myarch}" \ |
292 |
# ${S}/config.sh is generated from config-bits. |
266 |
-Dcccdlflags="-fPIC" \ |
293 |
# Bash substitution is used to alter options for each build |
267 |
-Dccdlflags="-rdynamic" \ |
294 |
|
268 |
-Dcc="$(tc-getCC)" \ |
295 |
source "${FILESDIR}"/config-bits || die "sourcing of config-bits failed" |
269 |
-Dprefix="/usr" \ |
296 |
make_configsh || die "make_configsh failed" |
270 |
-Dvendorprefix="/usr" \ |
297 |
|
271 |
-Dsiteprefix="/usr" \ |
298 |
sed -i -e "s|/usr/include|${ROOT}usr/include|g" \ |
272 |
-Dlocincpth=" " \ |
299 |
"${S}"/ext/Errno/Errno_pm.PL || die "sed of ${S}/ext/Errno/Errno_pm.PL failed" |
273 |
-Doptimize="${CFLAGS}" \ |
300 |
|
274 |
-Duselargefiles \ |
301 |
sh Configure -S $(use debug && echo '-DDEBUGGING') || die "Unable to configure" |
275 |
-Duseshrplib \ |
302 |
else |
276 |
-Dman3ext="3pm" \ |
303 |
sh Configure -des \ |
277 |
-Dlibperl="${LIBPERL}" \ |
304 |
-Darchname="${myarch}" \ |
278 |
-Dd_dosuid \ |
305 |
-Dcccdlflags="-fPIC" \ |
279 |
-Dd_semctl_semun \ |
306 |
-Dccdlflags="-rdynamic" \ |
280 |
-Dcf_by="Gentoo" \ |
307 |
-Dcc="$(tc-getCC)" \ |
281 |
-Ud_csh \ |
308 |
-Dprefix="/usr" \ |
282 |
"${myconf[@]}" || die "Unable to configure" |
309 |
-Dvendorprefix="/usr" \ |
|
|
310 |
-Dsiteprefix="/usr" \ |
311 |
-Dlocincpth=" " \ |
312 |
-Doptimize="${CFLAGS}" \ |
313 |
-Duselargefiles \ |
314 |
-Duseshrplib \ |
315 |
-Dman3ext="3pm" \ |
316 |
-Dlibperl="${LIBPERL}" \ |
317 |
-Dd_dosuid \ |
318 |
-Dd_semctl_semun \ |
319 |
-Dcf_by="Gentoo" \ |
320 |
-Ud_csh \ |
321 |
"${myconf[@]}" || die "Unable to configure" |
322 |
fi |
283 |
|
323 |
|
284 |
emake -j1 -f Makefile depend || die "Couldn't make libperl$(get_libname) depends" |
324 |
emake -j1 -f Makefile depend || die "Couldn't make libperl$(get_libname) depends" |
285 |
emake -j1 -f Makefile LDFLAGS="${LDFLAGS}" LIBPERL=${LIBPERL} ${LIBPERL} || die "Unable to make libperl$(get_libname)" |
325 |
emake -j1 -f Makefile LDFLAGS="${LDFLAGS}" LIBPERL=${LIBPERL} ${LIBPERL} || die "Unable to make libperl$(get_libname)" |