summaryrefslogtreecommitdiff
path: root/idlc
diff options
context:
space:
mode:
authorTor Lillqvist <tlillqvist@novell.com>2011-06-18 00:11:39 +0300
committerTor Lillqvist <tlillqvist@novell.com>2011-06-18 00:11:39 +0300
commitea4291dc1fff0ba3c3ed03267f765e4b40de4960 (patch)
tree012c24e07ad8ebf06f45a31c0fd2c852c9702cd3 /idlc
parentfd354f5544737b54f1538aa229258a86af97bc4e (diff)
Link correctly with the gnu_getopt library in the MinGW case
Diffstat (limited to 'idlc')
-rw-r--r--idlc/source/preproc/makefile.mk4
1 files changed, 3 insertions, 1 deletions
diff --git a/idlc/source/preproc/makefile.mk b/idlc/source/preproc/makefile.mk
index e6aa457e8b3d..721a5cd3e703 100644
--- a/idlc/source/preproc/makefile.mk
+++ b/idlc/source/preproc/makefile.mk
@@ -64,8 +64,10 @@ APP1OBJS=$(OBJ)$/cpp.obj
APP1LIBS= $(LB)$/idlcpp.lib
.IF "$(HAVE_GETOPT)" != "YES"
-.IF "$(GUI)" == "WNT"
+.IF "$(GUI)$(COM)" == "WNTMSC"
APP1STDLIBS=gnu_getopt.lib
+.ELIF "$(GUI)$(COM)" == "WNTGCC"
+APP1STDLIBS=-lgnu_getopt
.ENDIF
.ENDIF