Hi,
while building my tool on different platforms, I facved a swipl-ld error on Fedora 23 (fine on Fedora-22, ...):
[ 366s] [exec] cc1: error: unrecognized command line option '-mar'
Here is log extract of compilation
[ 366s] compile_swi_exe:
[ 366s] [exec] eval `swipl --dump-runtime-variables`
[ 366s] [exec] gcc -c -fno-strict-aliasing -pthread -fPIC -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m32 -mar -D_REENTRANT -D__SWI_PROLOG__ -D__SWI_EMBEDDED__ -I/usr/lib/swipl-7.2.3/include -o logolSwiMain.o logolSwiMain.c
[ 366s] [exec] CC="gcc"
[ 366s] [exec] PLBASE="/usr/lib/swipl-7.2.3"
[ 366s] [exec] PLARCH="i686-linux"
[ 366s] [exec] PLLIBS=""
[ 366s] [exec] PLLIB="-lswipl"
[ 366s] [exec] PLCFLAGS="-fno-strict-aliasing -pthread -fPIC -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m32 -mar"
[ 366s] [exec] PLLDFLAGS="-rdynamic -Wl,--enable-new-dtags -pthread -Wl,-rpath=/usr/lib/swipl-7.2.3/lib/i686-linux"
[ 366s] [exec] PLSOEXT="so"
[ 366s] [exec] PLTHREADS="yes"
[ 366s] [exec] cc1: error: unrecognized command line option '-mar'
[ 366s] [exec] gcc returned code 256
[ 366s] [exec] *** swipl-ld exit status 1
[ 366s] [exec] Result: 1
[ 366s] [exec] eval `swipl --dump-runtime-variables`
[ 366s] [exec] gcc -c -fno-strict-aliasing -pthread -fPIC -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m32 -mar -D_REENTRANT -D__SWI_PROLOG__ -D__SWI_EMBEDDED__ -I/usr/lib/swipl-7.2.3/include -o preSwiMain.o preSwiMain.c
[ 366s] [exec] CC="gcc"
[ 366s] [exec] PLBASE="/usr/lib/swipl-7.2.3"
[ 366s] [exec] PLARCH="i686-linux"
[ 366s] [exec] PLLIBS=""
[ 366s] [exec] PLLIB="-lswipl"
[ 366s] [exec] PLCFLAGS="-fno-strict-aliasing -pthread -fPIC -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m32 -mar"
[ 366s] [exec] PLLDFLAGS="-rdynamic -Wl,--enable-new-dtags -pthread -Wl,-rpath=/usr/lib/swipl-7.2.3/lib/i686-linux"
[ 366s] [exec] PLSOEXT="so"
[ 366s] [exec] PLTHREADS="yes"
[ 366s] [exec] cc1: error: unrecognized command line option '-mar'
[ 366s] [exec] gcc returned code 256
[ 366s] [exec] *** swipl-ld exit status 1