]> rtime.felk.cvut.cz Git - omk.git/blobdiff - tests/libraries
Support for target specific flags is broken in sysless
[omk.git] / tests / libraries
index fb73255013ec303b1ba436c915ffae6de6c162be..26ab40604305628c64af7947dba312bfd30b7d31 100755 (executable)
@@ -37,8 +37,28 @@ libtest_LIBS = mylib
 EOF
 
 needs_valid_CC
+omkize
 WVPASS make
 case $OMK_RULES in
     linux) WVPASS test -f _compiled/lib/libmylib.a ;;
 esac
 WVPASS make -C app
+
+
+case $OMK_RULES in
+    sysless) # Sysless rules do not support this (yet)
+       exit 0;;
+esac
+
+WVSTART "Static library with specific CFLAGS"
+cat > 'lib.c' <<EOF
+#if SYM != 123
+#error SYM value is wrong
+#endif
+EOF
+cat > 'Makefile.omk' <<EOF # OMK manual includes this file - do not modify it
+lib_LIBRARIES = mylib
+mylib_SOURCES = lib.c
+mylib_CFLAGS = -DSYM=123
+EOF
+WVPASS make