I use --variable in my builds, but I have a small problem:<br><br>with this pc file test.pc:<br>--------------------------------------------------------------------<br>prefix=/some/path<br>libdir=${prefix}/lib<br>includedir=${prefix}/include<br>
Rpath=-Wl,--rpath -Wl,${prefix}/lib<br><br>Name: test<br>Version: 0<br>Description: test<br><br>Cflags: -I${includedir} \<br> -m32 \<br> -m32 -DLOGGING=1 -I/blah/blay/blah -I/usr/include/mysql <br>Libs: -L${libdir} \<br>
-lmylib\<br> -L/spud/spud -lz -lcrypt -lnsl -lm <br>--------------------------------------------------------------------<br>pkg-config --version<br>0.23<br>/pkg-config --libs --cflags --variable=Rpath test <br>
<br>-Wl,--rpath -Wl,/some/path/lib-m32 -DLOGGING=1 -I/some/path/include -I/blah/blay/blah -I/usr/include/mysql -L/some/path/lib -L/spud/spud -lmylib -lz -lcrypt -lnsl -lm <br><br>the -m32 option is concatenated with the Rpath variable. The code in main.c looks like:<br>
if (variable_name)<br> {<br> char *str = packages_get_var (packages, variable_name);<br> printf ("%s", str);<br> g_free (str);<br> need_newline = TRUE;<br> }<br><br>Why not "%s ", like all of the other stmts? When I change this, it works for me. I am guessing that there must be something I am not doing right or some other reason for this, because I can't be the only person using --variable and having this problem?<br>
<br>thanks,<br>jim<br><br><br>