Linux Archive

Linux Archive (
-   Debian User (
-   -   Fwd: how to configure gcc (

Anand Sivaram 09-29-2010 06:12 PM

Fwd: how to configure gcc
---------- Forwarded message ----------
From: abdelkader belahcene <>

Date: Wed, Sep 29, 2010 at 23:16
Subject: how to configure gcc


by default *I have to add option *-lm *to the command gcc *-lm *file.c

when I use *math functions. *Where can I configure gcc to add it to the

default gcc, *after what I don't need *the option -lm , *just gcc file.c

thanks for help


To UNSUBSCRIBE, email to

with a subject of "unsubscribe". Trouble? Contact


In fact all -l<library name> is getting passed to the linker ld.The best way to avoid that is to write a makefile to use that.

All times are GMT. The time now is 08:46 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.