title: arm-linux-gnueabihf-ld: unrecognized option '-Wl,--gc-sections'
body: <p>I am cross-compiling Qt for raspberry Pi using this <a href="https://medium.com/@amirmann/how-to-cross-compile-qt-for-raspberry-pi-3-on-linux-ubuntu-for-beginners-75acf2a078c" rel="nofollow noreferrer">link</a> and I am facing some issues. When doing <code>sudo make</code> I get the following:</p>
  
  <pre><code>~/rpi-xtools/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin/arm-linux-gnueabihf-ld -Wl,--gc-sections -Wl,-O1 -fuse-ld=gold -o ../../../bin/moc .obj/moc.o .obj/preprocessor.o .obj/generator.o .obj/parser.o .obj/token.o .obj/main.o   -L/home/ytan/rpi-xtools/delme/qtbase/lib -lQt5Bootstrap -lpthread 
  /home/ytan/rpi-xtools/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin/arm-linux-gnueabihf-ld: unrecognized option '-Wl,--gc-sections'
  </code></pre>
  
  <p>I know that <code>-Wl,--gc-sections</code> is a command to arm-linux-gnueabihf-g++ and not arm-linux-gnueabihf-ld, but I don't know which Makefile I should dive into to change arm-linux-gnueabihf-ld to arm-linux-gnueabihf-g++.</p>
  
  <p>I seek thee desperately, O' mysterious dwellers of the web.</p>