[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Static vs Dynamic Linking



In article <[🔎] 8MYDgA3vc@muskogee.elmail.co.uk> you write:
>brian white writes:
>>>Sorry folks, the man-2.3.10-7 I released yesterday was statically
>>>linked against libc. (my latest upgrade went wrong). :(
>>>This version is dynamically linked:
>>
>>What is the procedure for checking if a binary is statically linked?
>
>Have a look at `man ldd'.
>
>>I was under the impression that gcc used shared libraries unless
>>it was given the "-static" flag.  Is this correct?
>
>Yup

Unless ld can't find the shared library, at which point it silently backs
off to static linkage.

Austin


Reply to: