You are not logged in.

#1 2009-11-27 19:49:24

JASN
Member
Registered: 2009-04-17
Posts: 18

Different results with make inside and outside of a PKGBUILD

Hello everyone!

Recently the mplayer-mt-git PKGBUILD became unusable due to changes in the used git repo. So i reworked the PKGBUILD, ran it - and hit a wall: it fails on producing the actual binaries of mplayer and mencode with a list of errors like

libvo/vo_aa.o: In function `draw_slice':
vo_aa.c:(.text+0xd74): undefined reference to `sws_scale_ordered'
(more similar errors)
...
collect2: ld returned 1 exit status

Although if i cd to the src and run a "manual" make, it builds and works like expected. I tried with and without CFLAGS, different settings for -j or the new and quite similar PKGBUILD from extcake from http://aur.archlinux.org/packages.php?ID=28623, which all give the same error. Does anyone have any idea what could influence "make" to produce different output or results when run from makepkg compared to when run from the shell? At the moment i use an ugly workaround with manual make, installing to /pkg/ and "makepkg -R" but i'd prefer a clean and successfull "makepkg".

So long, JASN

Offline

#2 2009-11-27 19:53:00

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,941
Website

Re: Different results with make inside and outside of a PKGBUILD

add unset LDFLAGS before ./configure


Give what you have. To someone, it may be better than you dare to think.

Offline

#3 2009-11-27 20:02:13

JASN
Member
Registered: 2009-04-17
Posts: 18

Re: Different results with make inside and outside of a PKGBUILD

I'll be damned! Thank you wonder.

Offline

Board footer

Powered by FluxBB