Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

how to set additional compiler options?

1 view
Skip to first unread message

Andras Balogh

unread,
May 1, 2008, 1:54:50 AM5/1/08
to dev-pl...@lists.mozilla.org
I'm building FIREFOX_2_0_0_12_RELEASE under Windows, using VC7.1.
I'd like to specify additional compiler flags like /GS and /RTC1, to
enable some runtime checks that detect buffer overruns and stack
corruption.
How can I do this? Is there an ac_add_options flag?

Also, it seems like that nspr4 is built without symbols. Any idea why and
how can I fix that?

Thanks,


Andras

Ben Hearsum

unread,
May 1, 2008, 7:14:49 AM5/1/08
to Andras Balogh, dev-pl...@lists.mozilla.org

You can export CFLAGS/CXXFLAGS/LDFLAGS in your mozconfig. Here's an example:
http://lxr.mozilla.org/mozilla/source/tools/tinderbox-configs/firefox/win32/mozconfig

Try 'export MOZ_DEBUG_SYMBOLS=1' for nspr.

- Ben

Andras Balogh

unread,
May 1, 2008, 10:42:08 AM5/1/08
to Ben Hearsum, dev-pl...@lists.mozilla.org
Thanks, I'll try that! Actually, it seems like that there _is_ a .pdb
built for nspr, but for some reason the debugger refuses to load it. Hmm,
I'll have to investigate some more.

thx,

Andras


On Thu, 01 May 2008 05:14:49 -0600, Ben Hearsum <bhea...@mozilla.com>
wrote:

Ted Mielczarek

unread,
May 1, 2008, 2:20:03 PM5/1/08
to

FYI:
http://msdn.microsoft.com/en-us/library/8dbf701c(VS.80).aspx

"/GS is on by default. Use /GS- if you expect your application to have
no security exposure."

-Ted

Andras Balogh

unread,
May 1, 2008, 2:29:42 PM5/1/08
to Ted Mielczarek, dev-pl...@lists.mozilla.org
Only on VS8, I'm using VS7.

> _______________________________________________
> dev-platform mailing list
> dev-pl...@lists.mozilla.org
> https://lists.mozilla.org/listinfo/dev-platform


Andras Balogh

unread,
May 1, 2008, 2:32:57 PM5/1/08
to dev-pl...@lists.mozilla.org
While on the topic, what's the difference between "export
MOZ_DEBUG_SYMBOLS=1" and "mk_add_options MOZ_DEBUG_SYMBOLS=1" in the
mozconfig file?
I've seen people use both. Do export and mk_add_options do the same?

Andras

On Thu, 01 May 2008 12:20:03 -0600, Ted Mielczarek
<ted.mie...@gmail.com> wrote:

Andras Balogh

unread,
May 1, 2008, 4:08:47 PM5/1/08
to Ted Mielczarek, dev-pl...@lists.mozilla.org
The latest version, yes. But I need to build the Firefox 2 branch, which
does not build with VC8 (according to this:
http://developer.mozilla.org/en/docs/Windows_Build_Prerequisites).

On Thu, 01 May 2008 12:51:34 -0600, Ted Mielczarek
<ted.mie...@gmail.com> wrote:

> Ok, but the official builds are built with VC8SP1, FWIW.
>
> -Ted
>
> 2008/5/1 Andras Balogh <andras...@gmx.net>:


>> Only on VS8, I'm using VS7.
>>
>>

>> On Thu, 01 May 2008 12:20:03 -0600, Ted Mielczarek
>> <ted.mie...@gmail.com> wrote:
>>
>>

0 new messages