LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   How change CFlag values in makefile (https://www.linuxquestions.org/questions/linux-networking-3/how-change-cflag-values-in-makefile-4175611763/)

marvic_32 08-11-2017 09:06 AM

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.

AwesomeMachine 08-11-2017 09:48 AM

You should be able to open the Makefile, edit it, and close it. Just add the cflags you want.

marvic_32 08-11-2017 10:34 AM

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.

pan64 08-11-2017 10:35 AM

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.

marvic_32 08-11-2017 10:56 AM

Yes, Makefile.in is updated after ./configure.


All times are GMT -5. The time now is 03:07 AM.