Package: urweb
Version: 20150214+dfsg-1
Severity: important
Owner: [email protected]

Attempting to compile a project with the '-static' flag will cause a GCC
failure:

    % cat test.ur
    val main : transaction page = return <xml>Hi</xml>
    % urweb -debug -static test
    gcc  -pthread -Wimplicit -Werror -Wno-unused-value -I /usr/include/urweb  
-c "/tmp/webapp.c" -o "/tmp/webapp.o" -g
    gcc -Werror  -pthread  "/tmp/webapp.o"  -static /usr/lib/liburweb_http.a 
/usr/lib/liburweb.a -lm -L/usr/lib -lcrypto -lssl -ldl -lz  -o "test.exe" -g
    gcc-4.9.real: error: /usr/lib/liburweb_http.a: No such file or directory
    gcc-4.9.real: error: /usr/lib/liburweb.a: No such file or directory

This occurs because urweb looks in /usr/lib for static libraries,
whereas it ought to look in /usr/lib/$DEB_HOST_MULTIARCH.

Dynamic linking works fine, presumably because Debian’s linker looks in
/usr/lib/$DEB_HOST_MULTIARCH by default.


--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to