[Users] Adding extra object file at linking stage
Roland Haas
rhaas at illinois.edu
Mon Aug 7 08:28:26 CDT 2023
Hello Elias,
This was held for moderation. For now I clicked on accept. Maybe
you need to register / update your email to emost at caltech.edu ?
To link in a single object file may be tricky. It may indeed be easier
to turn it into a lib file:
ar cru libfoo.a bar.o
ranlib libfoo.a
the add
LIBS=foo
LIBDIRS=DIR-WITH-FOO
and to you option list.
Directly adding object files is something that Erik just created a pull
request for (for different reasons, though who knows it was AMReX
related):
https://bitbucket.org/cactuscode/cactus/pull-requests/155
If you are in a thorn then there may be a way to fudge things as well,
though when quickly trying this I have not been successful.
Yours,
Roland
> Hi,
>
> I have an extra object file “.o” that was compiled externally, but needs to be linked in during the linking process.
>
> Is there a standard way to include this within the build process?
>
> Thank you,
> Elias
>
--
My email is as private as my paper mail. I therefore support encrypting
and signing email messages. Get my PGP key from http://pgp.mit.edu .
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://lists.einsteintoolkit.org/pipermail/users/attachments/20230807/4aa5fcd5/attachment.sig>
More information about the Users
mailing list