Index: tools/xcw/bin/helenos-cc
===================================================================
--- tools/xcw/bin/helenos-cc	(revision 58e7b26977afda549d7da683201907528ba22fd9)
+++ tools/xcw/bin/helenos-cc	(revision 464041698a3d92d07aded8be130230a18da695d3)
@@ -1,5 +1,5 @@
 #!/bin/bash
 #
-# Copyright (c) 2015 Jiri Svoboda
+# Copyright (c) 2018 Jiri Svoboda
 # All rights reserved.
 #
@@ -36,4 +36,5 @@
 UARCH="$("$XCW"/helenos-bld-config --uarch)"
 CC="$("$XCW"/helenos-bld-config --cc)"
+CFLAGS="$("$XCW"/helenos-bld-config --cflags)"
 ENDIAN="$("$XCW"/helenos-bld-config --endian)"
 
@@ -41,5 +42,5 @@
 "$CC" \
     -O3 -fexec-charset=UTF-8 -fwide-exec-charset=UTF-32LE -finput-charset=UTF-8 \
-    -nostdlib \
+    $CFLAGS \
     -Wall -Wextra -Wno-clobbered -Wno-unused-parameter -Wmissing-prototypes \
     -std=gnu99 -Werror-implicit-function-declaration -Wwrite-strings -ggdb \
