Help with SunStudio Compile for firefox - static build


 
Thread Tools Search this Thread
Operating Systems Solaris Help with SunStudio Compile for firefox - static build
# 1  
Old 02-14-2008
Help with SunStudio Compile for firefox - static build

I'm trying to compile firefox with static linked libs, but when I done with the compile, there are still a bunch of dependencies on .so files where in that same directory .la or .a files were.

I'm using sunstudio12, and following the directions from firefox..

i.e. Solaris Build Prerequisites - MDC


and..

my mozconfig is:

. $topsrcdir/browser/config/mozconfig
mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/ff-opt-static
ac_add_options --enable-optimize
ac_add_options --disable-debug
ac_add_options --enable-static
ac_add_options --disable-shared
ac_add_options --disable-libxul
ac_add_options --disable-tests


I've posted questions in the mozilla forums, but haven't gotten anyone to bite.

I need somone who knows how SunStudio, and static compiles works a whole heckava lot better than I.

Thanks!



But when I'm done, I still have a bunch of libs that didn't link staticly, or atleast that's what ldd says when I run it against firefox-bin.. :-(

I've gotten this work with gcc, and LD paths etc... but Mozilla's site actually recomends SunStudio, and when I try with gcc, it fails all the time with ld flag problems that I can't appear to resolve.
# 2  
Old 02-14-2008
Actually, you are fighting a losing battle.

SunStudio will no longer produce static binaries, in fact as of Solaris 10 there are none in the OS. The only way you can do this is with a third party compiler ( as you have already done with gcc )
# 3  
Old 02-14-2008
Is this the case for ANY lib? or just sun libs? i.e I don't care if many of the libs are dynamicly linked that are pretty standard to a sun box. But I've installed a bunch of sunfreeware libs on this box, and it uses those, and those have .a and .la files... So can I get sunstudio to compile just those ?

the flags are still there in the cc -flags? i.e. -Bstatic? but when I try it.. it does give me grief?
# 4  
Old 02-14-2008
IF not.... has anyone had any luck in gcc to compile firefox for Sun??? Smilie
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Windows & DOS: Issues & Discussions

(VS 2008) New build config looking files from other folder build config

Hi Team, My new build configuration always looking for the files from the build where i copied from. please help me to resolve this. I am using Visual studio 2008.It has Qt 4.8. plugins,qml,C++ development I created new debug_new build configuration with additional preprocessor from the... (1 Reply)
Discussion started by: SA_Palani
1 Replies

2. Shell Programming and Scripting

Build.xml invocation by Build Script

Hi I have a build.xml file and I can run it on Windows via cmd. Now I want to write a script to invoke the same. Is there a way to do this? (1 Reply)
Discussion started by: ankur328
1 Replies

3. UNIX for Dummies Questions & Answers

Adding SDK Build on Kernel Source Build

Hi, So I downloaded this kernel source and was able to build it successfully. But I want to add this SDK source code inside, can anyone help me how to do this? Note that the SDK source can be built by itself. I added the SDK in the main Makefile: init-y := init/ #added SDK... (0 Replies)
Discussion started by: h0ujun
0 Replies

4. Programming

Even the Static cURL Library Isn't Static

I'm writing a program which uses curl to be run on Linux PCs which will be used by a number of different users. I cannot make the users all install curl on their individual machines, so I have tried to link curl in statically, rather than using libcurl.so. I downloaded the source and created a... (8 Replies)
Discussion started by: BrandonShw
8 Replies

5. UNIX for Dummies Questions & Answers

Compiling gcc to compile make to compile yaboot

I have just installed OpenBSD on a 333MHz PPC iMac G3. It has a 6GB HDD that has been partitioned as 1GB MacOS 8.5.1, 3GB MacOS X 10.3.9, 2GB OpenBSD 4.8. I now need to install a bootloader so that my computer can recognize the OpenBSD partition at startup. I have been trying to install... (0 Replies)
Discussion started by: t04st3r
0 Replies

6. Linux

Could static library include static library?

I have some static library(libxxx.a libyyy.a). And I want to generate my library(libzzz.a), libzzz.a will use libxxx.a and libyyy.a I wan't my application only use libzzz.a, (means libzzz.a had include libxxx.a, libyyy.a), how can I do that? Thank you. example: I have zzz.c. I do ... (4 Replies)
Discussion started by: freemagic
4 Replies

7. Solaris

Installing SunStudio

i downloded the file SunStudio12u1-SunOS-x86-pkgs-ML.tar.bz2 on my vista and transfered it to a virtuak machine on my laptop running Sun Solaris 10.5 in a directory. How do i go about installing it from this directory.Can someone give the exact commands. (7 Replies)
Discussion started by: asalman.qazi
7 Replies

8. IP Networking

I need HELP to Set up Coyote Linux router with 1 static IP & 64 internal static IP

hello, i need help on setting my coyote linux, i've working on this for last 5 days, can't get it to work. I've been posting this message to coyote forum, and other linux forum, but haven't get any answer yet. Hope someone here can help me...... please see my attached picture first. ... (0 Replies)
Discussion started by: dlwoaud
0 Replies

9. Solaris

looking for different debugger for Solaris or to make sunstudio faster

im using the sunstudio but it is very slow , is there ant other GUI debugger for sun Solaris or at list some ways to make it faster ? im using to debug throw telnet connection connected to remote server thanks (0 Replies)
Discussion started by: umen
0 Replies

10. Programming

Static

What does this command exactly do cc -static example.c (6 Replies)
Discussion started by: wojtyla
6 Replies
Login or Register to Ask a Question