lojban / jbofihe

Parser & analyser for Lojban
GNU General Public License v2.0
33 stars 2 forks source link

Unable to build under linux without modifying Makefile #15

Open jmccardle opened 3 years ago

jmccardle commented 3 years ago

I got this error when building:

Scrt1.o: in function `_start': undefined reference to `main'

Which led me to this answer: https://stackoverflow.com/a/18825898

I modified my Makefile thusly:

    $(CC) -o uncom uncom.o

to

    $(CC) -shared -o uncom uncom.o

This allowed it to build on my system.

After running config.pl again, the change was overwritten, but compilation succeeded anyway because make or gcc seemed to lazily reuse the files from last time. I don't think modifying the Makefile is the right way to do it, but I couldn't figure out how to modify the perl script to correct the root of the problem.