Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 1

Qt-interest Archive, August 2006
[Qt4] Telling qmake to use LDFLAGS = -no-undefined


Message 1 in thread

Hi

Id like to compile with -no-undefined option to prevent libraries
being compiled with undefined symbols. How can I do this using qmake?
I tried using en env var eg. from bash:

export LDFLAGS='-no-undefined'

But thats not working. Preferably a way to specify it within the qmake
file would be best.

Many thanks


-- 
 [ signature omitted ] 

Message 2 in thread

> export LDFLAGS='-no-undefined'

In your .pro file try to put

QMAKE_LFLAGS_SHLIB *= -no-undefined

Regards,
Malte

--
 [ signature omitted ] 

Message 3 in thread

Hi

Many thanks Malte!

Regards

Tim

On 8/1/06, Malte Witt <malte.witt@xxxxxxxxxxxxx> wrote:
> > export LDFLAGS='-no-undefined'
>
> In your .pro file try to put
>
> QMAKE_LFLAGS_SHLIB *= -no-undefined
>
> Regards,
> Malte
>
> --
> To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx with "unsubscribe" in the subject or the body.
> List archive and information: http://lists.trolltech.com/qt-interest/
>
>


-- 
 [ signature omitted ] 

Message 4 in thread

Is that good for All operating systems (*nix, Windows, Mac) ?


Malte Witt wrote:
>> export LDFLAGS='-no-undefined'
>>     
>
> In your .pro file try to put
>
> QMAKE_LFLAGS_SHLIB *= -no-undefined
>
> Regards,
> Malte
>
> --
> To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx with "unsubscribe" in the subject or the body.
> List archive and information: http://lists.trolltech.com/qt-interest/
>
>
>   

--
 [ signature omitted ] 

Message 5 in thread

Hi

Assuming you are using gcc I think this should work on all platforms.

Regards

Tim

On 17/08/2006, at 10:59, Joshua Robinson wrote:

>
> Is that good for All operating systems (*nix, Windows, Mac) ?
>
>
> Malte Witt wrote:
>>> export LDFLAGS='-no-undefined'
>>>
>>
>> In your .pro file try to put
>>
>> QMAKE_LFLAGS_SHLIB *= -no-undefined
>>
>> Regards,
>> Malte
>>
>> --
>> To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx  
>> with "unsubscribe" in the subject or the body.
>> List archive and information: http://lists.trolltech.com/qt-interest/
>>
>>
>>
>
> --
> To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx  
> with "unsubscribe" in the subject or the body.
> List archive and information: http://lists.trolltech.com/qt-interest/
>

Tim Sutton
tim@xxxxxxxxxxxxx