Skip to content

Commit 94c5e7a

Browse files
committed
Linker options fix
1 parent 4ac810f commit 94c5e7a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

gccbasedassembler.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ QString GccBasedAssembler::getLinkerOptions()
5656
else
5757
options = "$PROGRAM.OBJ$ $MACRO.OBJ$ -g -o $PROGRAM$ -m64";
5858
if (m_isPieEnabled)
59-
options += " -fno-pie -no-pie";
59+
options += " -no-pie";
6060
return options;
6161
}
6262

mainwindow.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -884,7 +884,7 @@ void MainWindow::buildProgram(bool debugMode)
884884
}
885885

886886
//! GCC
887-
QString linkerOptions = "$PROGRAM.OBJ$ $MACRO.OBJ$ -g -o $PROGRAM$ -m32";
887+
QString linkerOptions = assembler->getLinkerOptions();
888888
if (settings.contains("linkingoptions"))
889889
linkerOptions = settings.value("linkingoptions").toString();
890890
//! macro.c compilation/copying

0 commit comments

Comments
 (0)