LDFLAGS and CPPFLAGS -> ended up in cvs admin -o
Some lousy amateur (judging from the style of his mail to arpi, probably koth) just reverted my fix on configure. And by using forbidden admin -o :) (never mind that current libavcodec doesn't compile on OSX/G4/fink/ darwinports because the current BROKEN way involves using custom CFLAGS [!] or BRAINDEAD mplayer-specific --with-extraincdir and -- with-extralibdir configure options [instead of correct and standard CPPFLAGS and LDFLAGS] which in turn disables some otherwise properly detected and mandatory CFLAG options for Altivec support, ultimately ending up in compile errors in imgresample.c) But hey, you may as well drown in your own shit, like hell I care. Learn something about portability. Log Message: add support for CPPFLAGS and LDFLAGS Index: configure =================================================================== RCS file: /cvsroot/mplayer/main/configure,v retrieving revision 1.1162 retrieving revision 1.1163 diff -u -r1.1162 -r1.1163 --- configure 18 Apr 2006 21:16:46 -0000 1.1162 +++ configure 20 Apr 2006 08:23:40 -0000 1.1163 @@ -586,6 +586,13 @@ # stuff explicitly as command line argument. In other words: It would be # resonable to have only /usr/include or only /usr/local/include. +# Gabucino: all the above is bullshit, people who babble this much trash +# never used any real UNIX, only [debian] linux. LDFLAGS and CPPFLAGS must +# always be honoured. + +_ld_extra="$_ld_extra $LDFLAGS" +_inc_extra="$_inc_extra $CPPFLAGS" + if freebsd ; then _ld_extra="$_ld_extra -L/usr/local/lib" _inc_extra="$_inc_extra -I/usr/local/include" -- Gábor Bérczi
Hi, On Thu, Apr 20, 2006 at 11:29:01AM +0200, =?ISO-8859-1?Q? G=E1bor_B=E9rczi_=28Gabucino=29 ?= wrote:
+_ld_extra="$_ld_extra $LDFLAGS" +_inc_extra="$_inc_extra $CPPFLAGS" +
I'd prefer the LDFLAGS/CPPCFLAGS/CFLAGS handling to be a bit more consistent. What about the attached patch? I moved the CFLAGS stuff up, since CFLAGS are used in compile_check, I think it really is better to set them before using that function. Testing would be very welcome (as well as a discussion about the error message). Greetings, Reimar Döffinger
Reimar Döffinger wrote:
What about the attached patch?
Looks ok. lu -- Luca Barbato Gentoo/linux Gentoo/PPC http://dev.gentoo.org/~lu_zero
On Thu, Apr 20, 2006 at 12:29:27PM +0200, Reimar Döffinger wrote:
On Thu, Apr 20, 2006 at 11:29:01AM +0200, =?ISO-8859-1?Q? G=E1bor_B=E9rczi_=28Gabucino=29 ?= wrote:
+_ld_extra="$_ld_extra $LDFLAGS" +_inc_extra="$_inc_extra $CPPFLAGS"
I'd prefer the LDFLAGS/CPPCFLAGS/CFLAGS handling to be a bit more consistent. What about the attached patch? I moved the CFLAGS stuff up, since CFLAGS are used in compile_check, I think it really is better to set them before using that function.
I don't like moving that stuff around. Options should only be checked once. This has been annoying me forever, it also causes subtle bugs. I'm looking into it right now. Diego
On Thu, Apr 20, 2006 at 03:19:58PM +0200, Diego Biurrun wrote:
On Thu, Apr 20, 2006 at 12:29:27PM +0200, Reimar Döffinger wrote:
On Thu, Apr 20, 2006 at 11:29:01AM +0200, =?ISO-8859-1?Q? G=E1bor_B=E9rczi_=28Gabucino=29 ?= wrote:
+_ld_extra="$_ld_extra $LDFLAGS" +_inc_extra="$_inc_extra $CPPFLAGS"
I'd prefer the LDFLAGS/CPPCFLAGS/CFLAGS handling to be a bit more consistent. What about the attached patch? I moved the CFLAGS stuff up, since CFLAGS are used in compile_check, I think it really is better to set them before using that function.
I don't like moving that stuff around. Options should only be checked once. This has been annoying me forever, it also causes subtle bugs. I'm looking into it right now.
Reimar, commit anytime. Removing the double option check kludge from configure is going to take me some time still and I don't want to hold this up. Your patch doesn't really make the current situation any worse. Diego
participants (4)
-
"Gábor Bérczi (Gabucino)" -
Diego Biurrun -
Luca Barbato -
Reimar Döffinger