]> rtime.felk.cvut.cz Git - omk.git/blobdiff - tests/shlibs
Support target specific flags also for libraries
[omk.git] / tests / shlibs
index 9adc3e72dc320dd541e7899511334906de4376ea..4b800f85601b806d8ea7205e79677ae029e60473 100755 (executable)
@@ -44,3 +44,16 @@ test_LIBS = a b
 EOF
 needs_valid_CC
 WVPASS make
+
+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