kometbomb / klystrack

A chiptune tracker
http://kometbomb.github.io/klystrack/
Other
481 stars 29 forks source link

Linking fails with CFG=release #215

Closed FreeFull closed 6 years ago

FreeFull commented 6 years ago

If I compile klystrack with CFG=debug or CFG=profile, it succeeds as expected, but with CFG=release I encounter this error during the linking phase:

$ make RES_PATH=. CFG=release

Linking klystrack...
/usr/bin/ld: ../klystron/bin.release/libengine_util.a(util_rnd.o): relocation R_X86_64_32S against `.bss' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: Nonrepresentable section on output
collect2: error: ld returned 1 exit status
make[1]: *** [Makefile:208: bin.release/klystrack] Error 1
make[1]: Leaving directory '/home/freefull/software/klystrack-repos/klystrack'
make: *** [Makefile:130: build] Error 2
FreeFull commented 6 years ago

Sorry, this was an error on my part. Turns out I had to do make clean inside the klystron directory