In my build chain, I need to do this:
objcopy -I binary -O $BFDNAME -B $BFDARCH <this> <that>
to get the binary in library form. Since I want other people to be able to use this, I need to know how to get $ BFDNAME and $ BFDARCH from their toolchain when they run the build. I can get the values locally by running objdump -f against the file I’ve already built, but is there a better way that won’t leave me compiling disposable files just to get the configuration value?
source
share