LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 04-26-2006, 08:27 AM   #1
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,629

Rep: Reputation: Disabled
Symbol-table for debugging while using make?


Well, I've got this GPLed package for a small fax program. But it doesn't work right on my box. I don't want to pester the maintainer overmuch, so I thought I might dare to take a look myself.

Thus I want to compile the sources using the prefabbed "make" file. How then would I tell the GCC compiler to take the "-g" option for production of a symbol table for ddd? Can it be done with a switch or do I really have to edit the makefile?

I didn't ask the right questions in google or the search facility here...

Last edited by JZL240I-U; 04-26-2006 at 08:28 AM.
 
Old 04-26-2006, 09:18 AM   #2
kaz2100
Senior Member
 
Registered: Apr 2005
Location: Penguin land, with apple, no gates
Distribution: SlackWare > Debian testing woody(32) sarge etch lenny squeeze(+64) wheezy .. bullseye bookworm
Posts: 1,834

Rep: Reputation: 108Reputation: 108
It depends on how package is designed.

find CFLAGS line in Makefile
add -g, remove -s -O[123] and necessary ones.

Often, appropriate line is commented out.
 
Old 04-27-2006, 04:17 AM   #3
bigearsbilly
Senior Member
 
Registered: Mar 2004
Location: england
Distribution: Mint, Armbian, NetBSD, Puppy, Raspbian
Posts: 3,515

Rep: Reputation: 239Reputation: 239Reputation: 239
you don't neccesarily have to edit the makefile
you can
make CFLAGS=-g
or
export CFLAGS=-g
will override them
 
  


Reply



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
Difference between kernel - debugging and application debugging topworld Linux - Software 2 03-30-2006 12:50 AM
symbol table Filipe Linux - Newbie 1 01-04-2006 01:15 PM
gdbserver problem: no symbol table whepin Linux - Laptop and Netbook 0 06-24-2005 09:48 PM
question about symbol table and nm command.. doublefailure Programming 1 01-15-2003 09:52 PM
enumerate object symbols in symbol table jim mcnamara Linux - General 1 05-13-2002 08:10 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 08:46 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