]> rtime.felk.cvut.cz Git - orte.git/commitdiff
Fix linker error on recent MinGW
authorMichal Sojka <sojkam1@fel.cvut.cz>
Sat, 14 Mar 2015 14:46:29 +0000 (15:46 +0100)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Sat, 14 Mar 2015 14:49:30 +0000 (15:49 +0100)
Commit 5874e67aa7c5fb7b7f82163c1777480c0aaa1541 added -lrt for
compatibility with certain Linux distributions, but on recent MinGW,
this fails.

Makefile.git

index 409f949102de3d03329e654365f0edc3a43b5b06..c8049fafba4bbbad1faf9b4d2cc946e2b397813b 100644 (file)
@@ -39,6 +39,7 @@ check-windows-omk.real:
        echo "CXX=i686-w64-mingw32-g++" >> config.omk
        echo "AR=i686-w64-mingw32-ar" >> config.omk
        echo "LD=i686-w64-mingw32-ld" >> config.omk
+       echo "TARGET_LOADLIBES=pthread" >> config.omk
        ln -s ../orte ../Makefile ../Makefile.omk ../Makefile.rules .
        make