How to pass Extra-libs to the Build?@@sig

classic Classic list List threaded Threaded
13 messages Options
Reply | Threaded
Open this post in threaded view
|

How to pass Extra-libs to the Build?@@sig

Andreas Mattheiss-3
Hello,

I'm trying to build firefox-35.0b4 on linux. Build bombs out with

/abc/build-ff/dist/lib/libnspr4.a(unix.o): In function
`_PR_UNIX_GetInterval2':
/abc/mozilla-beta/nsprpub/pr/src/md/unix/unix.c:3049: undefined reference
to `clock_gettime'

I know I'd have to specify -lrt. But-how do I do this,
globally? Configure apparently doesn't honour LDFLAGS.

TIA, regards
Andreas

--
LISTER Hey-hey! The axe-man is *back*! You beaut! Hang on! There's no
strings! They've confiscated the strings!
RIMMER: I feel like a man who leaps out of a plane with no parachute and
lands in the hot-tub at the Playboy mansion.

_______________________________________________
dev-builds mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-builds
Reply | Threaded
Open this post in threaded view
|

Re: How to pass Extra-libs to the Build?@@sig

ISHIKAWA,chiaki
What linux distribution do you use?

How did you configure the compilation environment (I mean ./mach configure,
etc.?)

I am mainly fixing comm-central thunderbird, but
usually running the initial configuration command gets it right.

So I suspect that there is something unusual with your linux distribution
(I am using Debian stable and testing on different computers.)


On 2014年12月20日 07:41, Andreas Mattheiss wrote:

> Hello,
>
> I'm trying to build firefox-35.0b4 on linux. Build bombs out with
>
> /abc/build-ff/dist/lib/libnspr4.a(unix.o): In function
> `_PR_UNIX_GetInterval2':
> /abc/mozilla-beta/nsprpub/pr/src/md/unix/unix.c:3049: undefined reference
> to `clock_gettime'
>
> I know I'd have to specify -lrt. But-how do I do this,
> globally? Configure apparently doesn't honour LDFLAGS.
>
> TIA, regards
> Andreas
>
_______________________________________________
dev-builds mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-builds
Reply | Threaded
Open this post in threaded view
|

Re: How to pass Extra-libs to the Build?

Andreas Mattheiss-3
Hi,

thanks for getting back.

Am Mon, 22 Dec 2014 15:18:56 +0900 schrieb ishikawa:

> What linux distribution do you use?
>

It's a quite un-mutilated Slackware 13.37.0. On this machine I only
updated the kernel manually, i.e. no libc-self-compilation etc.

> How did you configure the compilation environment (I mean ./mach
> configure, etc.?)
>

I configered thus:

../mozilla-beta/configure --enable-crypto --prefix=/usr --enable-strip --disable-debug
--disable-tests --disable-accessibility --disable-ldap --with-x
--disable-pedantic --enable-default-toolkit=cairo-gtk2
--enable-jemalloc=no --enable-application=browser --disable-necko-wifi
--disable-crashreporter --enable-gstreamer=no --disable-pulseaudio


> I am mainly fixing comm-central thunderbird, but usually running the
> initial configuration command gets it right.
>
> So I suspect that there is something unusual with your linux
> distribution (I am using Debian stable and testing on different
> computers.)
>

If this had happened on my other machine where virtually everything is
self compiled ... But really, on the machine in question it's effectively
plain Slack.

Thank you, regards
Andreas Mattheiss

--
Rimmer: Far from it. He's lost a bit of weight, actually. Actually, he's
lost quite a bit of everything.
Cat: That's tragic. That is the saddest thing I've ever seen in my life
... (looks up in dismay) What happened to my butt? Buddy, you could park
a plane in that crease.
Lister: So what if you're fat and bald. That's what happens when you get
older. Look at me -- I'm a brain in a jar!
Cat: Self self self self self!

_______________________________________________
dev-builds mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-builds
Reply | Threaded
Open this post in threaded view
|

Re: How to pass Extra-libs to the Build?

xunxun
On 2014/12/22 21:36, Andreas Mattheiss wrote:

> Hi,
>
> thanks for getting back.
>
> Am Mon, 22 Dec 2014 15:18:56 +0900 schrieb ishikawa:
>
>> What linux distribution do you use?
>>
> It's a quite un-mutilated Slackware 13.37.0. On this machine I only
> updated the kernel manually, i.e. no libc-self-compilation etc.
>
>> How did you configure the compilation environment (I mean ./mach
>> configure, etc.?)
>>
> I configered thus:
>
> ../mozilla-beta/configure --enable-crypto --prefix=/usr --enable-strip --disable-debug
> --disable-tests --disable-accessibility --disable-ldap --with-x
> --disable-pedantic --enable-default-toolkit=cairo-gtk2
> --enable-jemalloc=no --enable-application=browser --disable-necko-wifi
> --disable-crashreporter --enable-gstreamer=no --disable-pulseaudio
>
>
>> I am mainly fixing comm-central thunderbird, but usually running the
>> initial configuration command gets it right.
>>
>> So I suspect that there is something unusual with your linux
>> distribution (I am using Debian stable and testing on different
>> computers.)
>>
> If this had happened on my other machine where virtually everything is
> self compiled ... But really, on the machine in question it's effectively
> plain Slack.
>
> Thank you, regards
> Andreas Mattheiss
>
You can try

LDFLAGS += -lrt ../configure ...

--
Best Regards,
xunxun
_______________________________________________
dev-builds mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-builds
Reply | Threaded
Open this post in threaded view
|

Re: How to pass Extra-libs to the Build?

Andreas Mattheiss-3
In reply to this post by Andreas Mattheiss-3
Hi,

Am Mon, 22 Dec 2014 22:00:23 +0800 schrieb xunxun:


>>
> You can try
>
> LDFLAGS += -lrt ../configure ...

I'm not quite with you, this appears not to be a shell command, right?
Where would the LDFLAGS += -lrt go?

Andreas

--
KRYTEN: I have a theory, everyone. The Silverburg didn't crash, did it,
Cassandra? The ship was sent here by the Space Corps. on auto-pilot to
get rid of you; to abandon you at the bottom of a lunar sea, in the
depths of Deep Space.
CAT: That's brilliant, bud! How'd you work that out?
KRYTEN: I read it on this mission directive, here.

_______________________________________________
dev-builds mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-builds
Reply | Threaded
Open this post in threaded view
|

Re: How to pass Extra-libs to the Build?

xunxun
On 2014/12/22 22:09, Andreas Mattheiss wrote:

> Hi,
>
> Am Mon, 22 Dec 2014 22:00:23 +0800 schrieb xunxun:
>
>
>> You can try
>>
>> LDFLAGS += -lrt ../configure ...
> I'm not quite with you, this appears not to be a shell command, right?
> Where would the LDFLAGS += -lrt go?
>
> Andreas
>
No space

LDFLAGS+=-lrt ../configure



--
Best Regards,
xunxun
_______________________________________________
dev-builds mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-builds
Reply | Threaded
Open this post in threaded view
|

Re: How to pass Extra-libs to the Build?@@sig

Ted Mielczarek-2
In reply to this post by Andreas Mattheiss-3
On 12/19/2014 5:41 PM, Andreas Mattheiss wrote:

> Hello,
>
> I'm trying to build firefox-35.0b4 on linux. Build bombs out with
>
> /abc/build-ff/dist/lib/libnspr4.a(unix.o): In function
> `_PR_UNIX_GetInterval2':
> /abc/mozilla-beta/nsprpub/pr/src/md/unix/unix.c:3049: undefined reference
> to `clock_gettime'
>
> I know I'd have to specify -lrt. But-how do I do this,
> globally? Configure apparently doesn't honour LDFLAGS.
>
If the build system isn't passing -lrt automatically then that's a bug.
It's possible that something about your system configuration or build
configuration is causing this to happen. In my local Firefox build on
Ubuntu 14.04 libnspr4.so winds up linked to librt.so, and I didn't have
to do anything special for that to happen.

-Ted

_______________________________________________
dev-builds mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-builds
Reply | Threaded
Open this post in threaded view
|

Re: How to pass Extra-libs to the Build?

Andreas Mattheiss-3
In reply to this post by Andreas Mattheiss-3
Hi,

Am Mon, 22 Dec 2014 11:42:23 -0500 schrieb Ted Mielczarek:

> If the build system isn't passing -lrt automatically then that's a bug.

That's what I thought. But who am I to state this ;-)

> It's possible that something about your system configuration or build
> configuration is causing this to happen. In my local Firefox build on
> Ubuntu 14.04 libnspr4.so winds up linked to librt.so, and I didn't have to
> do anything special for that to happen.

That's what I would have assumed. I'm not a developer, but the fact is
that your Ubuntu version is quite a bit more recent than my Slackware
version.

And it is definitely a missing -lrt; when I invoke the gcc command
"manually" with -lrt on the command line it compiles. But there are a
great many parts of the code that would need this, doing it all by hand
looks stupid to me. There must be somewhere where I can specify -lrt in
the Makefile or something that is included into it, but i haven't figured
out what to do exactly and where; as I said configure doesn't honour
LDFLAGS apparently.

Regards
Andreas

--
RIMMER: Yes, true. It's pathetic watching you grind away day after day.
It's like a dog that's missing it's masters leg. That groinal
attachment's supposed to have a lifetimes gurantee, you've worn it out
in nearly three weeks.

_______________________________________________
dev-builds mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-builds
Reply | Threaded
Open this post in threaded view
|

Re: How to pass Extra-libs to the Build?

Mike Hommey
On Mon, Dec 22, 2014 at 11:02:19PM +0100, Andreas Mattheiss wrote:

> Hi,
>
> Am Mon, 22 Dec 2014 11:42:23 -0500 schrieb Ted Mielczarek:
>
> > If the build system isn't passing -lrt automatically then that's a bug.
>
> That's what I thought. But who am I to state this ;-)
>
> > It's possible that something about your system configuration or build
> > configuration is causing this to happen. In my local Firefox build on
> > Ubuntu 14.04 libnspr4.so winds up linked to librt.so, and I didn't have to
> > do anything special for that to happen.
>
> That's what I would have assumed. I'm not a developer, but the fact is
> that your Ubuntu version is quite a bit more recent than my Slackware
> version.
>
> And it is definitely a missing -lrt; when I invoke the gcc command
> "manually" with -lrt on the command line it compiles. But there are a
> great many parts of the code that would need this, doing it all by hand
> looks stupid to me. There must be somewhere where I can specify -lrt in
> the Makefile or something that is included into it, but i haven't figured
> out what to do exactly and where; as I said configure doesn't honour
> LDFLAGS apparently.

What is that command line that was missing a -lrt? Maybe the problem is
that this shouldn't be running at all, and something unexpected is being
built. I know there are weird edge cases that are not supposed to happen
that do happen, maybe you hit one. So any detail would be useful here.

Mike
_______________________________________________
dev-builds mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-builds
Reply | Threaded
Open this post in threaded view
|

Re: How to pass Extra-libs to the Build?

Andreas Mattheiss-3
In reply to this post by Andreas Mattheiss-3
Hello,

Am Tue, 23 Dec 2014 07:30:54 +0900 schrieb Mike Hommey:

>
> What is that command line that was missing a -lrt? Maybe the problem is
> that this shouldn't be running at all, and something unexpected is being
> built. I know there are weird edge cases that are not supposed to happen
> that do happen, maybe you hit one. So any detail would be useful here.
>
> Mike

it happens in the nss-department. Like so: first, a bland make coughs up:

make[6]: Entering directory `/root/mozilla-beta/security/nss/lib/dbm/src'
/root/build-ff/config/nsinstall -R -m 664 /root/build-ff/security/nss/lib/dbm/src/libdbm.a /root/build-ff/dist/lib
make[6]: Leaving directory `/root/mozilla-beta/security/nss/lib/dbm/src'
make[5]: Leaving directory `/root/mozilla-beta/security/nss/lib/dbm'
cd softoken; make libs
make[5]: Entering directory `/root/mozilla-beta/security/nss/lib/softoken'
rm -f /root/build-ff/security/nss/lib/softoken/libsoftokn3.so
gcc -shared  -Wl,--gc-sections -Wl,-z,defs -Wl,-soname -Wl,libsoftokn3.so  -Wl,--version-script,/root/build-ff/security/nss/lib/softoken/softokn.def -o /root/build-ff/security/nss/lib/softoken/libsoftokn3.so /root/build-ff/security/nss/lib/softoken/fipsaudt.o /root/build-ff/security/nss/lib/softoken/fipstest.o /root/build-ff/security/nss/lib/softoken/fipstokn.o /root/build-ff/security/nss/lib/softoken/lgglue.o /root/build-ff/security/nss/lib/softoken/lowkey.o /root/build-ff/security/nss/lib/softoken/lowpbe.o /root/build-ff/security/nss/lib/softoken/padbuf.o /root/build-ff/security/nss/lib/softoken/pkcs11.o /root/build-ff/security/nss/lib/softoken/pkcs11c.o /root/build-ff/security/nss/lib/softoken/pkcs11u.o /root/build-ff/security/nss/lib/softoken/sdb.o /root/build-ff/security/nss/lib/softoken/sftkdb.o /root/build-ff/security/nss/lib/softoken/sftkhmac.o /root/build-ff/security/nss/lib/softoken/sftkpars.o /root/build-ff/security/nss/lib/softoken/sftkpwd.o /root/build-ff/securit
 y/nss/lib/softoken/softkver.o /root/build-ff/security/nss/lib/softoken/tlsprf.o /root/build-ff/security/nss/lib/softoken/jpakesftk.o   /root/build-ff/dist/lib/libfreebl.a  -L/root/build-ff/dist/lib -lmozsqlite3 -L/root/build-ff/dist/lib -lnssutil3 -L/root/build-ff/dist/lib -lplc4 -lplds4 -lnspr4  -lpthread  -ldl -lc
/root/build-ff/dist/lib/libnspr4.a(unix.o): In function `_PR_UNIX_GetInterval2':
/root/mozilla-beta/nsprpub/pr/src/md/unix/unix.c:3049: undefined reference to `clock_gettime'
collect2: ld returned 1 exit status
make[5]: *** [/root/build-ff/security/nss/lib/softoken/libsoftokn3.so] Error 1
make[5]: Leaving directory `/root/mozilla-beta/security/nss/lib/softoken'
make[4]: *** [libs] Error 2
make[4]: Leaving directory `/root/mozilla-beta/security/nss/lib'
make[3]: *** [libs-nss/lib] Error 2
make[3]: Leaving directory `/root/build-ff/config/external/nss'
make[2]: *** [config/external/nss/target] Error 2
make[2]: Leaving directory `/root/build-ff'
make[1]: *** [compile] Error 2
make[1]: Leaving directory `/root/build-ff'
make: *** [default] Error 2

I then manually repeatt the last failed step:

acer [23:51] [~/build-ff] <# 16> cd /root/mozilla-beta/security/nss/lib/softoken
acer [23:52] [~/mozilla-beta/security/nss/lib/softoken] <# 17> rm -f /root/build-ff/security/nss/lib/softoken/libsoftokn3.so
acer [23:53] [~/mozilla-beta/security/nss/lib/softoken] <# 18> gcc -shared  -Wl,--gc-sections -Wl,-z,defs -Wl,-soname -Wl,libsoftokn3.so  -Wl,--version-script,/root/build-ff/security/nss/lib/softoken/softokn.def -o /root/build-ff/security/nss/lib/softoken/libsoftokn3.so /root/build-ff/security/nss/lib/softoken/fipsaudt.o /root/build-ff/security/nss/lib/softoken/fipstest.o /root/build-ff/security/nss/lib/softoken/fipstokn.o /root/build-ff/security/nss/lib/softoken/lgglue.o /root/build-ff/security/nss/lib/softoken/lowkey.o /root/build-ff/security/nss/lib/softoken/lowpbe.o /root/build-ff/security/nss/lib/softoken/padbuf.o /root/build-ff/security/nss/lib/softoken/pkcs11.o /root/build-ff/security/nss/lib/softoken/pkcs11c.o /root/build-ff/security/nss/lib/softoken/pkcs11u.o /root/build-ff/security/nss/lib/softoken/sdb.o /root/build-ff/security/nss/lib/softoken/sftkdb.o /root/build-ff/security/nss/lib/softoken/sftkhmac.o /root/build-ff/security/nss/lib/softoken/sftkpars.o /root/buil
 d-ff/security/nss/lib/softoken/sftkpwd.o /root/build-ff/security/nss/lib/softoken/softkver.o /root/build-ff/security/nss/lib/softoken/tlsprf.o /root/build-ff/security/nss/lib/softoken/jpakesftk.o   /root/build-ff/dist/lib/libfreebl.a  -L/root/build-ff/dist/lib -lmozsqlite3 -L/root/build-ff/dist/lib -lnssutil3 -L/root/build-ff/dist/lib -lplc4 -lplds4 -lnspr4  -lpthread  -ldl -lc -lrt
acer [23:53] [~/mozilla-beta/security/nss/lib/softoken] <# 19>

and this bit compiles fine-note the -lrt in the end, added manually. As I
said, there's apparently quite a few bits that would need this; it's too
hideous to do this again and again by hand.

Regards
Andreas


_______________________________________________
dev-builds mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-builds
Reply | Threaded
Open this post in threaded view
|

Re: How to pass Extra-libs to the Build?

Mike Hommey
On Mon, Dec 22, 2014 at 11:57:02PM +0100, Andreas Mattheiss wrote:

> Hello,
>
> Am Tue, 23 Dec 2014 07:30:54 +0900 schrieb Mike Hommey:
>
> >
> > What is that command line that was missing a -lrt? Maybe the problem is
> > that this shouldn't be running at all, and something unexpected is being
> > built. I know there are weird edge cases that are not supposed to happen
> > that do happen, maybe you hit one. So any detail would be useful here.
> >
> > Mike
>
> it happens in the nss-department. Like so: first, a bland make coughs up:
>
> make[6]: Entering directory `/root/mozilla-beta/security/nss/lib/dbm/src'
> /root/build-ff/config/nsinstall -R -m 664 /root/build-ff/security/nss/lib/dbm/src/libdbm.a /root/build-ff/dist/lib
> make[6]: Leaving directory `/root/mozilla-beta/security/nss/lib/dbm/src'
> make[5]: Leaving directory `/root/mozilla-beta/security/nss/lib/dbm'
> cd softoken; make libs
> make[5]: Entering directory `/root/mozilla-beta/security/nss/lib/softoken'
> rm -f /root/build-ff/security/nss/lib/softoken/libsoftokn3.so
> gcc -shared  -Wl,--gc-sections -Wl,-z,defs -Wl,-soname -Wl,libsoftokn3.so  -Wl,--version-script,/root/build-ff/security/nss/lib/softoken/softokn.def -o /root/build-ff/security/nss/lib/softoken/libsoftokn3.so /root/build-ff/security/nss/lib/softoken/fipsaudt.o /root/build-ff/security/nss/lib/softoken/fipstest.o /root/build-ff/security/nss/lib/softoken/fipstokn.o /root/build-ff/security/nss/lib/softoken/lgglue.o /root/build-ff/security/nss/lib/softoken/lowkey.o /root/build-ff/security/nss/lib/softoken/lowpbe.o /root/build-ff/security/nss/lib/softoken/padbuf.o /root/build-ff/security/nss/lib/softoken/pkcs11.o /root/build-ff/security/nss/lib/softoken/pkcs11c.o /root/build-ff/security/nss/lib/softoken/pkcs11u.o /root/build-ff/security/nss/lib/softoken/sdb.o /root/build-ff/security/nss/lib/softoken/sftkdb.o /root/build-ff/security/nss/lib/softoken/sftkhmac.o /root/build-ff/security/nss/lib/softoken/sftkpars.o /root/build-ff/security/nss/lib/softoken/sftkpwd.o /root/build-ff/secur
 it

>  y/nss/lib/softoken/softkver.o /root/build-ff/security/nss/lib/softoken/tlsprf.o /root/build-ff/security/nss/lib/softoken/jpakesftk.o   /root/build-ff/dist/lib/libfreebl.a  -L/root/build-ff/dist/lib -lmozsqlite3 -L/root/build-ff/dist/lib -lnssutil3 -L/root/build-ff/dist/lib -lplc4 -lplds4 -lnspr4  -lpthread  -ldl -lc
> /root/build-ff/dist/lib/libnspr4.a(unix.o): In function `_PR_UNIX_GetInterval2':
> /root/mozilla-beta/nsprpub/pr/src/md/unix/unix.c:3049: undefined reference to `clock_gettime'
> collect2: ld returned 1 exit status
> make[5]: *** [/root/build-ff/security/nss/lib/softoken/libsoftokn3.so] Error 1
> make[5]: Leaving directory `/root/mozilla-beta/security/nss/lib/softoken'
> make[4]: *** [libs] Error 2
> make[4]: Leaving directory `/root/mozilla-beta/security/nss/lib'
> make[3]: *** [libs-nss/lib] Error 2
> make[3]: Leaving directory `/root/build-ff/config/external/nss'
> make[2]: *** [config/external/nss/target] Error 2
> make[2]: Leaving directory `/root/build-ff'
> make[1]: *** [compile] Error 2
> make[1]: Leaving directory `/root/build-ff'
> make: *** [default] Error 2

Yeah, this is not supposed to be happening at all. libsoftokn3.so should
be linking against a libnspr4.so, not libnspr4.a. It smells like a race
condition of some sort. Try building with -j1.

And please file a bug.

Mike
_______________________________________________
dev-builds mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-builds
Reply | Threaded
Open this post in threaded view
|

Re: How to pass Extra-libs to the Build?

ISHIKAWA,chiaki
In reply to this post by Andreas Mattheiss-3
On 2014年12月22日 23:37, xunxun wrote:

> On 2014/12/22 22:09, Andreas Mattheiss wrote:
>> Hi,
>>
>> Am Mon, 22 Dec 2014 22:00:23 +0800 schrieb xunxun:
>>
>>
>>> You can try
>>>
>>> LDFLAGS += -lrt ../configure ...
>> I'm not quite with you, this appears not to be a shell command, right?
>> Where would the LDFLAGS += -lrt go?
>>
>> Andreas
>>
> No space
>
> LDFLAGS+=-lrt ../configure
>
>

This looks a little suspicious.

First of all, does xunxun's environment or Andreas's define LDFLAGS
already? That is, is there an LDFLAGS variable in the environment?

Mine does not. As a matter of fact
env | grep LD
printed out only
LD_LIBRARY_PATH=:/usr/local/lib

So probably without using "+=", a simple assignment to LDFALGS=-rt may be
enough.

But *if* there is already LDFLAGS, which I don't think Ubunto or
slackware defines usually, then there is a subtle behavioral issue.

Unlike what |make| does to its variables when it sees += (see the example at
the end),
shell treats the string addition WITHOUT any whitespace and
So if the existing LDFLAGS is, say, "-lm", then
-lrt is concatenated as "-lm-lrt" which is not desirable.
So you might as well write this carefully and
LDFLAGS="$LDFLAGS -lrt" ...
instead *if and only if* LDFLAGS is already defined.

I thought EXPLICIT exporting is required, but
no, LDFLAGS is exported only to the executed configure command .
LDFLAGS="..." ./configure
Neat.
cf. "If no command name results, variable assignments shall affect the
current execution environment. Otherwise, the variable assignments shall be
exported for the execution environment of the command and shall not affect
the current execution environment (except for special built-ins). If any of
the variable assignments attempt to assign a value to a read-only variable,
a variable assignment error shall occur. See Consequences of Shell Errors
for the consequences of these errors."
from posix shell description:
http://pubs.opengroup.org/onlinepubs/009695399/utilities/xcu_chap02.html#tag_02_09_01
(See the paragraph in 2.9.1 Simple Commands)


[1] make's variable handling when it sees +=
Here is an example. Note how var1 and var2 are added by +=.

--- begin quote Makefile ---
var1=abc
var2=def
var1+=${var2}

all:
        echo ${var1}
--- end quote
--- running make produces the output: note the whitespace.
make -k
echo abc def
abc def


PS: BTW, I was surprised to find that with bash, the following occurred.
$ PARAM=abc echo ${PARAM}

$
It seems substitution is done before "PARAM=abc" is evaluated, and come to
think of it,
it is natural and to be expected. So we can write LDFLAGS="$LDFLAGS -lrt"
./configure
if LDFLAGS is defined already.

_______________________________________________
dev-builds mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-builds
Reply | Threaded
Open this post in threaded view
|

Re: How to pass Extra-libs to the Build?

Gibor
In reply to this post by Andreas Mattheiss-3
Andreas Mattheiss <please.post@...> writes:

>
> Hi,
>
> Am Mon, 22 Dec 2014 11:42:23 -0500 schrieb Ted Mielczarek:
>
> > If the build system isn't passing -lrt automatically then that's a bug.
>
> That's what I thought. But who am I to state this
>
> > It's possible that something about your system configuration or build
> > configuration is causing this to happen. In my local Firefox build on
> > Ubuntu 14.04 libnspr4.so winds up linked to librt.so, and I didn't have to
> > do anything special for that to happen.
>
> That's what I would have assumed. I'm not a developer, but the fact is
> that your Ubuntu version is quite a bit more recent than my Slackware
> version.
>
> And it is definitely a missing -lrt; when I invoke the gcc command
> "manually" with -lrt on the command line it compiles. But there are a
> great many parts of the code that would need this, doing it all by hand
> looks stupid to me. There must be somewhere where I can specify -lrt in
> the Makefile or something that is included into it, but i haven't figured
> out what to do exactly and where; as I said configure doesn't honour
> LDFLAGS apparently.
>
> Regards
> Andreas
>

Hi at all, I confirm the tricks of Andreas work, and I have create a patch
to insert from source -lrt in file necessary at compile.
I'm not a developer, and this patch not have any warranty, but on my case
have success on source of firefox-35.

This is patch
http://pastebin.com/muqzbiGn
god luck


_______________________________________________
dev-builds mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-builds