LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-12-2021, 06:22 PM   #1
coltson
Member
 
Registered: Oct 2010
Posts: 104

Rep: Reputation: 2
Using CPPFLAGS to 32bit building AND point to source files simultaneously!


Hi. If I try to build a 32bit, I pass
Code:
CPPFLAGS=-m32 LDFLAGS=-m32 CFLAGS=-m32 ./configure --host=i386-linux-gnu
to configure.

However, I install all header files and their associated libraries into their own directories.

So when a program I am currently building needs to look for certain source files, I do:
Code:
CPPFLAGS=-/media/34GB/Arquivos-de-Programas/whatever/include ./configure
However, for 32bit builds, CPPFLAGS is already busy receiving "-m32"

So, what can I do to make CPPFLAGS to do both things?
 
Old 09-13-2021, 12:44 AM   #2
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 16,870

Rep: Reputation: 5696Reputation: 5696Reputation: 5696Reputation: 5696Reputation: 5696Reputation: 5696Reputation: 5696Reputation: 5696Reputation: 5696Reputation: 5696Reputation: 5696
CPPFLAGS="-m32 -/media/34GB/Arquivos-de-Programas/whatever/include anything_else"
 
Old 09-24-2021, 07:17 PM   #3
coltson
Member
 
Registered: Oct 2010
Posts: 104

Original Poster
Rep: Reputation: 2
Quote:
Originally Posted by pan64 View Post
CPPFLAGS="-m32 -/media/34GB/Arquivos-de-Programas/whatever/include anything_else"
Really? I just did
Code:
CPPFLAGS="-m32 -/media/34GB/Arquivos-de-Programas-Linux-32bit/xorg/X11-1.4.4/include/"  CFLAGS=-m32 LDFLAGS=-m32 ./configure --host=i386-linux-gnu
and received a:
Code:
checking for C compiler default output file name... 
configure: error: in `/home/leopoldo/Arquivos-de-Programas-Linux/Mesa-7.5.2':
configure: error: C compiler cannot create executables
See `config.log' for more details.
Reading config.log there is a:
Code:
gcc: error: unrecognized command line option '-/media/34GB/Arquivos-de-Programas-Linux-32bit/xorg/X11-1.4.4/include/'
 
Old Yesterday, 12:40 AM   #4
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 16,870

Rep: Reputation: 5696Reputation: 5696Reputation: 5696Reputation: 5696Reputation: 5696Reputation: 5696Reputation: 5696Reputation: 5696Reputation: 5696Reputation: 5696Reputation: 5696
yes, that is an invalid option. for include files you need to use
Code:
-I<dir>
 
  


Reply

Tags
32bit, configure


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Why C_INCLUDE_FLAGS works and CPPFLAGS does not when compiling this sioftware coltson Linux - Software 3 09-24-2020 07:49 PM
LDFLAGS and CPPFLAGS on OpenLDAP LuisO CentOS 4 07-30-2020 02:09 AM
[SOLVED] exhale: CPPFLAGS and SlackBuild... andrew.46 Slackware 2 04-06-2020 06:37 PM
[SOLVED] centos5 both 32bit glibc and 64 glibc exist, how to delete the 32bit version zousheng Linux - Newbie 2 04-03-2013 09:17 AM
Fedora 13 32bit and then Linux Mint 32bit and then Ubuntu 10.04 32bit ciao303 Linux - Newbie 3 08-09-2010 11:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:06 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration