Struggling on linking external libraries

12 views
Skip to first unread message

Jeehoon Kang

unread,
May 13, 2019, 11:32:56 PM5/13/19
to Hafnium
Hi all,

I'm trying to link an external static library (say `libfoo.a`) to Hafnium.  I tried to tweak `BUILD.gn` and `*.gni` files on my own, but I failed to get it done..

May I ask if anyone succeeded in linking an external static library to Hafnium?

Thanks,
Jeehoon

Andrew Scull

unread,
May 14, 2019, 4:18:19 AM5/14/19
to Jeehoon Kang, Hafnium
The build system is gn and there is a relevant question on their mailing list. This isn't something we've done before and isn't, in general, something we'd want to do compared to building from source. Hopefully that thread can help with what you're trying to do.

--
You received this message because you are subscribed to the Google Groups "Hafnium" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hafnium-discu...@googlegroups.com.
To post to this group, send email to hafnium...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/hafnium-discuss/143938ea-018a-4efe-a7c2-c44085b03b7d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Jeehoon Kang

unread,
May 18, 2019, 3:37:44 AM5/18/19
to Hafnium
Dear Andrew,

I finally succeeded in linking an external static library and hafnium: https://github.com/jeehoonkang/hafnium/commit/644b97802e5f23b08df09998635a44c0a5f5c15c

(Context: I'm trying to gradually port Hafnium to Rust, for which it is necessary to link Rust-built static library with Hafnium.)

Thanks,
Jeehoon

On Tuesday, May 14, 2019 at 5:18:19 PM UTC+9, Andrew Scull wrote:
The build system is gn and there is a relevant question on their mailing list. This isn't something we've done before and isn't, in general, something we'd want to do compared to building from source. Hopefully that thread can help with what you're trying to do.

From: Jeehoon Kang <jeeho...@cp.kaist.ac.kr>
Date: Tue, 14 May 2019 at 04:32
To: Hafnium

Hi all,

I'm trying to link an external static library (say `libfoo.a`) to Hafnium.  I tried to tweak `BUILD.gn` and `*.gni` files on my own, but I failed to get it done..

May I ask if anyone succeeded in linking an external static library to Hafnium?

Thanks,
Jeehoon

--
You received this message because you are subscribed to the Google Groups "Hafnium" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hafnium...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages