Search code examples
cautoconfautomakelibtoolgnu-make

add in a Makefile.in a -DVARIABLE linux


I am trying to make a configure.ac + Makefile.in files I have. Everything is ok till at make:

Here I have:

usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 9 has invalid symbol index 2
/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 10 has invalid symbol index 11
/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 11 has invalid symbol index 12
4-linux-gnu/crt1.o: In function `_start':
(.text+0x20): undefined reference to `main'
collect2: ld returned 1 exit status

WHY?

In my Makefile.am I did include: AM_CFLAGS = -DMAIN=1

WHat am I doing wrong?

Thx

PROBLEM SOLVED I VE REPLACES AM_CFLAGS WITH FILE_NAME_CFLAGS!!


Solution

  • Problem solved.
    I've replaced AM_CFLAGS with FILE_NAME_CFLAGS.