On Tue, Jan 04, 2011 at 06:20:11PM -0800, Matthew Hall wrote:
> 3) To work around these problems for now I'm going to patch configure.in 
> and rerun autoconf unless there is an alternative proposal.
> 
> Thanks,
> Matthew Hall.

As promised, a hacky workaround patch is pasted below.

I'd like to improve upon this bad situation, probably by appending the 
user CFLAGS after the custom package CFLAGS to take priority (the last 
entries generally take precedence, AIUI), but I'm not incredibly 
experienced with how this code is supposed to work so I'd like some 
advice before trying something like this.

Thanks,
Matthew.

diff -ruN -x '*m4*' -x 'config.*' -x configure -x 'Makefile.*' -x ltmain.sh 
old/libdbi-0.8.4/configure.in new/libdbi-0.8.4/configure.in
--- old/libdbi-0.8.4/configure.in       2010-08-31 15:35:12.000000000 -0700
+++ new/libdbi-0.8.4/configure.in       2011-01-05 13:36:54.561314455 -0800
@@ -47,25 +47,25 @@
                 CFLAGS="-xO4 -fast -w -fsimple -native -xcg92"
                 PROFILE="-v -xpg -g -xO4 -fast -native -fsimple -xcg92 
-Dsuncc" ;;
         *)
-                DEBUG="-g"
-                CFLAGS="-O"
-                PROFILE="-g -p" ;;
+                DEBUG="-g -m32 -I /home/y/include"
+                CFLAGS="-O -m32 -I /home/y/include"
+                PROFILE="-g -p -m32 -I /home/y/include" ;;
         esac
 else
 
         case $host in
         *-*-linux*)
-                DEBUG="-g -Wall -D_REENTRANT -D__NO_MATH_INLINES -fsigned-char 
-std=gnu99"
-                CFLAGS="-O20 -ffast-math -D_REENTRANT -fsigned-char -std=gnu99"
-                PROFILE="-pg -g -O20 -ffast-math -D_REENTRANT -fsigned-char 
-std=gnu99";;
+                DEBUG="-g -m32 -I /home/y/include -Wall -D_REENTRANT 
-D__NO_MATH_INLINES -fsigned-char -std=gnu99"
+                CFLAGS="-g -O20 -m32 -I /home/y/include -ffast-math 
-D_REENTRANT -fsigned-char -std=gnu99"
+                PROFILE="-pg -g -O20 -m32 -I /home/y/include -ffast-math 
-D_REENTRANT -fsigned-char -std=gnu99";;
         sparc-sun-*)
                 DEBUG="-g -Wall -D__NO_MATH_INLINES -fsigned-char -mv8 
-std=gnu99"
                 CFLAGS="-O20 -ffast-math -D__NO_MATH_INLINES -fsigned-char 
-mv8 -std=gnu99"
                 PROFILE="-pg -g -O20 -D__NO_MATH_INLINES -fsigned-char -mv8 
-std=gnu99" ;;
         *)
-                DEBUG="-g -Wall -D__NO_MATH_INLINES -fsigned-char -std=gnu99"
-                CFLAGS="-O20 -D__NO_MATH_INLINES -fsigned-char -std=gnu99"
-                PROFILE="-O20 -g -pg -D__NO_MATH_INLINES -fsigned-char 
-std=gnu99" ;;
+                DEBUG="-g -m32 -I /home/y/include -Wall -D__NO_MATH_INLINES 
-fsigned-char -std=gnu99"
+                CFLAGS="-g -O20 -m32 -I /home/y/include -D__NO_MATH_INLINES 
-fsigned-char -std=gnu99"
+                PROFILE="-O20 -g -pg -m32 -I /home/y/include 
-D__NO_MATH_INLINES -fsigned-char -std=gnu99" ;;
         esac
 fi
 
diff -ruN -x '*m4*' -x 'config.*' -x configure -x 'Makefile.*' -x ltmain.sh 
old/libdbi-drivers-0.8.3-1/configure.in new/libdbi-drivers-0.8.3-1/configure.in
--- old/libdbi-drivers-0.8.3-1/configure.in     2008-03-03 09:41:41.000000000 
-0800
+++ new/libdbi-drivers-0.8.3-1/configure.in     2011-01-05 13:45:48.001227902 
-0800
@@ -48,25 +48,25 @@
                 CFLAGS="-xO4 -fast -w -fsimple -native -xcg92"
                 PROFILE="-v -xpg -g -xO4 -fast -native -fsimple -xcg92 
-Dsuncc" ;;
         *)
-                DEBUG="-g"
-                CFLAGS="-O"
-                PROFILE="-g -p" ;;
+                DEBUG="-g -m32 -I /home/y/include"
+                CFLAGS="-O -m32 -I /home/y/include"
+                PROFILE="-g -p -m32 -I /home/y/include" ;;
         esac
 else
 
         case $host in
         *-*-linux*)
-                DEBUG="-g -Wall -D_REENTRANT -D__NO_MATH_INLINES -fsigned-char"
-                CFLAGS="-O20 -ffast-math -D_REENTRANT -fsigned-char"
-                PROFILE="-pg -g -O20 -ffast-math -D_REENTRANT -fsigned-char";;
+                DEBUG="-g -m32 -I /home/y/include -Wall -D_REENTRANT 
-D__NO_MATH_INLINES -fsigned-char"
+                CFLAGS="-g -O20 -m32 -I /home/y/include -ffast-math 
-D_REENTRANT -fsigned-char"
+                PROFILE="-pg -g -O20 -m32 -I /home/y/include -ffast-math 
-D_REENTRANT -fsigned-char";;
         sparc-sun-*)
                 DEBUG="-g -Wall -D__NO_MATH_INLINES -fsigned-char -mv8"
                 CFLAGS="-O20 -ffast-math -D__NO_MATH_INLINES -fsigned-char 
-mv8"
                 PROFILE="-pg -g -O20 -D__NO_MATH_INLINES -fsigned-char -mv8" ;;
         *)
-                DEBUG="-g -Wall -D__NO_MATH_INLINES -fsigned-char"
-                CFLAGS="-O20 -D__NO_MATH_INLINES -fsigned-char"
-                PROFILE="-O20 -g -pg -D__NO_MATH_INLINES -fsigned-char" ;;
+                DEBUG="-g -m32 -I /home/y/include -Wall -D__NO_MATH_INLINES 
-fsigned-char"
+                CFLAGS="-g -O20 -m32 -I /home/y/include -D__NO_MATH_INLINES 
-fsigned-char"
+                PROFILE="-O20 -g -pg -m32 -I /home/y/include 
-D__NO_MATH_INLINES -fsigned-char" ;;
         esac
 fi
 


------------------------------------------------------------------------------
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
libdbi-users mailing list
libdbi-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libdbi-users

Reply via email to