Setting up some environment variables for host-compiling embedded things

I needed compile FSO/SHR stuff here on my host PC to be able to compile Aurora’s news updates,it’s simple when you have some variables exported to make each compilation go inside the same directory.

export PATH=$PATH:/opt/fso/bin
export CONF_FLAGS="--prefix=/opt/fso/usr --sysconfdir=/opt/fso/etc  --datarootdir=/opt/fso/usr/share --datadir=/opt/fso/usr/share --enable-debug"
export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/opt/fso/pkgconfig:/opt/fso/share/pkgconfig:/opt/fso/usr/pkgconfig:/opt/fso/usr/share/pkgconfig
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/fso/:/opt/fso/usr/lib && export LIBRARY_PATH=$LIBRARY_PATH:/opt/fso/lib:/opt/fso/usr/lib

Thanks to playya when he told me CONF_FLAGS.

Now:

./configure $CONF_FLAGS # or ./autogen.sh $CONF_FLAGS
make
'sudo' make install

That’s helpful!

Advertisements

About barklome

This is angelox's (or barklome) personal blog. Talking about Embedded Linux things,Free Software Things,and tutorials about how-to-use free software.
This entry was posted in Embedded Linux, Uncategorized. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s