LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 08-11-2017, 09:06 AM   #1
marvic_32
LQ Newbie
 
Registered: Apr 2015
Posts: 18

Rep: Reputation: Disabled
How change CFlag values in makefile


Hello,

Trying to add new flags in make file, but configuration file is not allowing to save in makefile. Manually i have to do it.

In BlueZ 5.46 folder, which config file i need to change -ledit instead of -lreadline. CFlags. So that, automatically it will add -ledit.


Answers Appropriated.
 
Old 08-11-2017, 09:48 AM   #2
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524

Rep: Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015
You should be able to open the Makefile, edit it, and close it. Just add the cflags you want.
 
Old 08-11-2017, 10:34 AM   #3
marvic_32
LQ Newbie
 
Registered: Apr 2015
Posts: 18

Original Poster
Rep: Reputation: Disabled
Thanks for replay, I did it in same way, but after ./configure those values( -ledit)in Makefile are vanished and writing old on (-lreadline).

I searched the configure and all the config files but could not find where from the values are written in Makefile.
 
Old 08-11-2017, 10:35 AM   #4
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,692

Rep: Reputation: 7274Reputation: 7274Reputation: 7274Reputation: 7274Reputation: 7274Reputation: 7274Reputation: 7274Reputation: 7274Reputation: 7274Reputation: 7274Reputation: 7274
Makefile is generated by configure, so if you modify Makefile you must not invoke configure again. Or probably there is a Makefile.in from which that file was generated.
 
Old 08-11-2017, 10:56 AM   #5
marvic_32
LQ Newbie
 
Registered: Apr 2015
Posts: 18

Original Poster
Rep: Reputation: Disabled
Yes, Makefile.in is updated after ./configure.
 
  


Reply

Tags
makefile


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
[SOLVED] modifying variable containing compiler options as values in Makefile chakka.lokesh Programming 3 10-08-2015 11:45 PM
[SOLVED] cflag and fflag in makefile hoi Linux - Newbie 2 07-30-2013 01:19 PM
Using a variable in makefile which takes values from an external file. AshishJogeshwar Programming 1 06-21-2010 02:54 PM
How can I change BIOS values from console ? +Yan Linux - Software 1 08-28-2006 02:00 PM
cflag settings for gentoo make.conf shanenin Linux - Software 1 10-27-2005 09:27 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 07:12 PM.

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