Updated gcc configure command.
authorR Veera Kumar <vklr@vkten.in>
Sun, 23 May 2021 14:45:08 +0000 (20:15 +0530)
committerR Veera Kumar <vklr@vkten.in>
Sun, 23 May 2021 14:45:08 +0000 (20:15 +0530)
Added --enable-default-pie to gcc configure command.
This argument should match the system installed gcc default settings.
Otherwise built ghdl runned linker errors.
To know system gcc settings, run: gcc -v

ghdl-install

index 3de01a18a3d91c1e68b05516c586d74f8a8fafd3..788801883f5872d42516069b985fa425936d99be 100755 (executable)
@@ -38,7 +38,7 @@ cd build
 ../configure --with-gcc=../../gcc-10.3.0 --prefix=/usr/local/ghdl
 make copy-sources
 mkdir gcc-objs; cd gcc-objs
-../../../gcc-10.3.0/configure --prefix=/usr/local/ghdl --enable-languages=c,vhdl --disable-bootstrap --disable-lto --disable-multilib --disable-libssp --disable-libgomp --disable-libquadmath
+../../../gcc-10.3.0/configure --prefix=/usr/local/ghdl --enable-languages=c,vhdl --disable-bootstrap --disable-lto --disable-multilib --disable-libssp --disable-libgomp --disable-libquadmath --enable-default-pie
 make -j$(nproc)
 make install
 cd ..