You are not logged in.

#1 2008-03-20 14:43:05

dyscoria
Member
Registered: 2008-01-10
Posts: 1,007

using "unset CFLAGS"

Part of the mplayer PKGBUILD (and I assume various other packages also) there is a line that says:

unset CFLAGS

This is supposedly because mplayer compilation breaks otherwise. Say i'm doing this manually without a PKGBUILD, does the unset command persist? Do I need to run something like 'source /etc/makepkg.conf' or does the command only apply for the xterm I have open?

Thanks!

Last edited by dyscoria (2008-03-20 14:43:20)


flack 2.0.6: menu-driven BASH script to easily tag FLAC files (AUR)
knock-once 1.2: BASH script to easily create/send one-time sequences for knockd (forum/AUR)

Offline

#2 2008-03-20 15:08:21

bender02
Member
From: UK
Registered: 2007-02-04
Posts: 1,328

Re: using "unset CFLAGS"

Hm? If you are building manually, only environment variables set in that particular shell session (terminal) matter. How could a command in a PKGBUILD influence those? If you want to unset CFLAGS, just "unset CFLAGS" in terminal. Likewise "source <anything>" will only affect environment variables in your current terminal. You can see what's set by running "env" (at least in bash and zsh).

EDIT: Now on the second read, I'm not sure what do you mean by "manually": What I meant by manually is the usual "./configure, make, make install".

Last edited by bender02 (2008-03-20 15:11:29)

Offline

#3 2008-03-20 15:13:00

dyscoria
Member
Registered: 2008-01-10
Posts: 1,007

Re: using "unset CFLAGS"

Ah thanks! That env command will come in very useful too smile

edit: yeah, what I meant by manually is configure, make etc etc. I was just wondering about the persistance of the unset command when used on the command line.

Last edited by dyscoria (2008-03-20 15:14:29)


flack 2.0.6: menu-driven BASH script to easily tag FLAC files (AUR)
knock-once 1.2: BASH script to easily create/send one-time sequences for knockd (forum/AUR)

Offline

Board footer

Powered by FluxBB