]> rtime.felk.cvut.cz Git - omk.git/blobdiff - tests/shlibs
Update wvtool
[omk.git] / tests / shlibs
index 9adc3e72dc320dd541e7899511334906de4376ea..fb539360ea948f577602ace28608808c9986eef2 100755 (executable)
@@ -44,3 +44,21 @@ test_LIBS = a b
 EOF
 needs_valid_CC
 WVPASS make
+
+case $OMK_RULES in
+    sysless) # Sysless rules do not support this (yet)
+       exit 0;;
+esac
+
+WVSTART "Dynamic 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
+shared_LIBRARIES = mylib
+mylib_SOURCES = lib.c
+mylib_CFLAGS = -DSYM=123
+EOF
+WVPASS make