Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7882969
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T04:24:43+00:00 2026-06-03T04:24:43+00:00

I am compiling the glibc library. Before I could do that, I need to

  • 0

I am compiling the glibc library. Before I could do that, I need to run configure. However, for compiling glibc, I need to use the gcc compiler which is not the default compiler on the machine. The manual says the following.

It may also be useful to set the CC and CFLAGS variables in the environment 
when running configure. CC selects the C compiler that will be used, and CFLAGS 
sets optimization options for the compiler.

Now my problem is that I don’t have any administrative rights on that machine. So how can I use a compiler different than the default.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T04:24:44+00:00Added an answer on June 3, 2026 at 4:24 am

    On linux anyone can change environment variables of their process and no admin rights are needed.

    In bash:

    export CC="gcc" CFLAGS="-O3 -Wall"
    

    In csh use

    setenv CC "gcc"
    

    Any program started in this shell after such command will have CC variable in its environment. (Env vars are remembered by bash, csh or other shell). You can add this command to your ~/.bashrc file to make this setting permanent.

    There are other ways to pass CC to configure too, e.g. in bash it is possible to set environment variable to single command, without remembering:

    CC="gcc" CFLAGS="-O3 -Wall" ./configure ...
    

    PS and popular ./configure CC=gcc is not an environment variable change and is specific to configure implementation (but most configures support this)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

When compiling C++ with the -fdump-tree-gimple option (GCC 4.6.1), I get code that has
When compiling a 'static library' project in MSVC++, I often get .lib files that
compiling with gcc C99 I have been using enums for a while now. However,
When compiling shared libraries in gcc the -fPIC option compiles the code as position
When compiling my project with gcc and the -Wall option, I get a warning
Compiling on linux using gcc. I would like to convert this to hex. 10
I'm cross-compiling an application, but linking blows up with an error that it cannot
when compiling my program with GCC I get the following warning: format ‘%d’ expects
Compiling a file that uses OpenGL with Visual C++, when I try to include
compiling with gcc C99 I am trying to compare 2 string using string compare.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.