summaryrefslogtreecommitdiff
path: root/sal
diff options
context:
space:
mode:
Diffstat (limited to 'sal')
-rw-r--r--sal/util/makefile.mk9
1 files changed, 5 insertions, 4 deletions
diff --git a/sal/util/makefile.mk b/sal/util/makefile.mk
index 04382b956ddd..f56e6f88f058 100644
--- a/sal/util/makefile.mk
+++ b/sal/util/makefile.mk
@@ -97,7 +97,12 @@ SHL1VERSIONMAP= $(TARGET).map
SHL1RPATH=URELIB
.IF "$(GUI)"=="WNT"
+
+.IF "$(COM)"=="GCC"
+UWINAPILIB= -luwinapi
+.ELSE
UWINAPILIB= $(LB)$/uwinapi.lib
+.ENDIF
SHL1STDLIBS= \
$(UWINAPILIB)\
@@ -169,11 +174,7 @@ SHL1OBJS= \
.ENDIF # UNX
.ENDIF # lincinc
-.IF "$(GUI)"=="WNT"
-SHL1DEPN= $(UWINAPILIB)
-.ELSE
SHL1DEPN=
-.ENDIF
SHL1DEF= $(MISC)$/$(SHL1TARGET).def
DEF1NAME= $(SHL1TARGET)