Corey,

I concur with Phil. It is much easier to build it twice passing
different compiler
and include dir. They will end up in different places in your filesystem anyway.
If something needs to be adjusted in the Makefiles for this, just send
me a patch.

On Fri, May 2, 2008 at 11:45 AM, Philip Mucci <[EMAIL PROTECTED]> wrote:
> HI Corey,
>
>  We do this on SiCortex by simply running the build twice and only
>  installing files in /usr/lib (32 bit) for the 32 bit build. This is
>  also how Gentoo and other Linux systems seem to work...they install
>  into a separate area using the GNU standard DESTDIR syntax, which I
>  added to libpfm a while back. Here's how it goes.
>
>  (install everything as 64 bit files)
>  make PREFIX=/usr LIBDIR=/usr/lib64 install
>
>  (install 32 bit lib files to temp area)
>  make PREFIX=/usr LIBDIR=/usr/lib DESTDIR=/tmp/libpfm-32 install
>  install /tmp/libpfm-32/usr/lib/* /usr/lib
>
>  Phil
>
>
>
>  On May 2, 2008, at 2:34 AM, Corey Ashford wrote:
>
>  > Hi Folks,
>  >
>  > I've recently run into the issue of wanting to have both a 32-bit
>  > and a
>  > 64-bit version of the libpfm library built for 64-bit Power machines.
>  >
>  > It seems to be the case that on other platforms, you either build a
>  > 64-bit library, or a 32-bit one.  Currently, the makefile builds a
>  > 32-bit libpfm on POWER.
>  >
>  > Is there a way you'd recommend to support both 32-bit and 64-bit
>  > libraries?  Should they be built in the same place, or should there be
>  > two installations, and some command line switches to choose which
>  > one to
>  > build?  It seems like the latter would be a simpler way to go, though
>  > not ideal from a user's standpoint.
>  >
>  > Thanks for your consideration,
>  >
>  > - Corey
>  >
>  >
>  > --
>  > Corey Ashford
>  > Software Engineer
>  > IBM Linux Technology Center, Linux Toolchain
>  > Beaverton, OR
>  > 503-578-3507
>  > [EMAIL PROTECTED]
>  >
>  >
>  > -------------------------------------------------------------------------
>  > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
>  > Don't miss this year's exciting event. There's still time to save
>  > $100.
>  > Use priority code J8TL2D2.
>  > 
> http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
>  > _______________________________________________
>  > perfmon2-devel mailing list
>  > [email protected]
>  > https://lists.sourceforge.net/lists/listinfo/perfmon2-devel
>
>
>  -------------------------------------------------------------------------
>  This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
>  Don't miss this year's exciting event. There's still time to save $100.
>  Use priority code J8TL2D2.
>  
> http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
>  _______________________________________________
>  perfmon2-devel mailing list
>  [email protected]
>  https://lists.sourceforge.net/lists/listinfo/perfmon2-devel
>

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
perfmon2-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/perfmon2-devel

Reply via email to