httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brett @Google" <brett.maxfi...@gmail.com>
Subject Re: [users@httpd] apache 2.2.7 bit level info
Date Sat, 26 Apr 2014 04:45:19 GMT
In addition, it is also useful to add "-xarch=native and -xcode=pic32" to
CFLAGS

-xcode=pic32 helps linking with .so libraries which are not solaris-savvy
(the equivalent of linux's -G / -fPIC)
-xarch=native will optimise the code for the same machine it is compiling
on (good if all your machines are all the same hardware / cpu type..
otherwise don't use it)

It is also useful to add :

"-L<prefix where my libs are>/lib and -R<prefix where my libs are>/lib" to
LDFLAGS

And keep in mind you cannot link 32 bit libraries and 64 bit libraries, so
-f you use -m64 then you need all 64 bit compiled third party libraries, it
will ignore 32 bit libraries, exactly like they don't exist.

The Solaris linker has no particular defaults (it ignores /usr/local/lib in
particular), so unless you can change the library search path for the whole
machine, the -R is pretty much required to find your libs.

The Solaris versions of libraries which apache depends on, are very old and
will conflict with building newer software, so best to roll your own libs,
or stick with more modern versions from sunfreeware

Cheers
Brett


On Sat, Apr 26, 2014 at 12:58 PM, Jesus Cea <jcea@jcea.es> wrote:

> On 25/04/14 22:48, Eric Covener wrote:
> > On Fri, Apr 25, 2014 at 4:43 PM, venu thangalapally <whenu14@gmail.com>
> wrote:
> >> can you please provide more info how can i build it to 64-bit... apache
> 2.2
> >> tar file from apache link does not say the bit level information
> >
> > The bit level is not really a property of source code.
> >
> > You'll have to consult the manual for your compiler (sun studio, gcc,
> > ???) for what flags to add for 64-bit code. Maybe it's even the
> > default.  for httpd, it's best to bake the flag into CC="" environment
> > variable, rather than CFLAGS.
>
> Try:
>
> export CFLAGS="-m64"
> export LDFLAGS="-m64"
>
> And then do normal compilation.
>
> You will need 64 bit versions of all dependencies, of course.
>
> --
> Jesús Cea Avión                         _/_/      _/_/_/        _/_/_/
> jcea@jcea.es - http://www.jcea.es/     _/_/    _/_/  _/_/    _/_/  _/_/
> Twitter: @jcea                        _/_/    _/_/          _/_/_/_/_/
> jabber / xmpp:jcea@jabber.org  _/_/  _/_/    _/_/          _/_/  _/_/
> "Things are not so easy"      _/_/  _/_/    _/_/  _/_/    _/_/  _/_/
> "My name is Dump, Core Dump"   _/_/_/        _/_/_/      _/_/  _/_/
> "El amor es poner tu felicidad en la felicidad de otro" - Leibniz
>
>


-- 
Whenever you find yourself on the side of the majority, it is time to pause
and reflect.

- Mark Twain

Mime
View raw message