AIX

AIX

Connect with fellow AIX users and experts to gain knowledge, share insights, and solve problems.


#Power
#Power
#Operatingsystems
#Servers
 View Only
  • 1.  Making standalone progs with GCC

    Posted 02/07/08 10:02 AM

    Originally posted by: Bob_X


    I'm building a program suite on AIX5.3 using the GCC 4.0.0 copy from the Linux Toolbox and have run into a small problem with the finished code. It looks like any program (and library) seems to need libgcc_s.a present - so in a workaround I've bundled that up with my programs.

    I'm pretty sure that there must be a way - preferably a simple one - for the compiler/linker to be told to copy in that library at link time, not at runtime, but I just can't get my head around how exactly.

    Of course, if the answer is to just ship a copy of libgcc_s.a then I'm cool with that - even if it is a bit clunky...

    Thanks! (and apologies if this is an RTFM item - I've already RTFM every relevant manual I can find, and had an extended Googling session, and me brain hurts now) :D

    Bob
    #AIX-Forum


  • 2.  Re: Making standalone progs with GCC

    Posted 02/07/08 10:11 AM

    Originally posted by: tony.evans


    Does the -static option for gcc work?
    #AIX-Forum


  • 3.  Re: Making standalone progs with GCC

    Posted 02/07/08 12:59 PM

    Originally posted by: SystemAdmin


    tony.evans are right. -static-libgcc must work
    #AIX-Forum