Update of /cvs/fresco/Fresco/Berlin/config
In directory purcel:/tmp/cvs-serv308/Berlin/config
Modified Files:
Berlin-build-config.in Berlin-config.in
Log Message:
Do not reorder elements in --cppfalgs and --libs but use the first occurence.
There should only be -I, -L, -l and -D flags there and those will work
if we only allow the first occurence. Closes bug283.
Index: Berlin-build-config.in
===================================================================
RCS file: /cvs/fresco/Fresco/Berlin/config/Berlin-build-config.in,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- Berlin-build-config.in 12 Nov 2003 22:38:12 -0000 1.3
+++ Berlin-build-config.in 6 Dec 2003 11:26:46 -0000 1.4
@@ -40,14 +40,18 @@
;;
--cppflags)
echo @CPPFLAGS@ -I@abs_top_builddir@/include -I@abs_top_srcdir@/include
|\
- sed -e "s/ /\n/g" | sort -u | xargs echo -n
+ sed -e 's/^ *-//; s/ \+-/\n/g' | awk 'a[$0]++==0 { print "-"$0; }' |\
+ xargs echo -n
+ echo
;;
--cxxflags)
echo @CXXFLAGS@
;;
--libs)
echo -L@abs_top_builddir@/lib -lBerlin @LIBS@ |\
- sed -e "s/ /\n/g" | sort -u | xargs echo -n
+ sed -e 's/^ *-//; s/ \+-/\n/g' | awk 'a[$0]++==0 { print "-"$0; }' |\
+ xargs echo -n
+ echo
;;
*)
echo "${usage}" 1>&2
Index: Berlin-config.in
===================================================================
RCS file: /cvs/fresco/Fresco/Berlin/config/Berlin-config.in,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- Berlin-config.in 12 Nov 2003 22:38:12 -0000 1.4
+++ Berlin-config.in 6 Dec 2003 11:26:46 -0000 1.5
@@ -40,14 +40,18 @@
;;
--cppflags)
echo @INSTALL_CPPFLAGS@ -I@includedir@ |\
- sed -e "s/ /\n/g" | sort -u | xargs echo -n
+ sed -e 's/^ *-//; s/ \+-/\n/g' | awk 'a[$0]++==0 { print "-"$0; }' |\
+ xargs echo -n
+ echo
;;
--cxxflags)
echo @CXXFLAGS@
;;
--libs)
echo -L@libdir@ -lBerlin @INSTALL_LIBS@ |\
- sed -e "s/ /\n/g" | sort -u | xargs echo -n
+ sed -e 's/^ *-//; s/ \+-/\n/g' | awk 'a[$0]++==0 { print "-"$0; }' |\
+ xargs echo -n
+ echo
;;
*)
echo "${usage}" 1>&2
|
Try Searching:
servers, voip, java, networking, microsoft ...
|
|
|
|