From: Tadeusz Struk <tadeusz.struk at intel.com>
To: tpm2@lists.01.org
Subject: Re: [tpm2] How to generate the statically linked executable
Date: Wed, 25 Sep 2019 13:55:52 -0700 [thread overview]
Message-ID: <7a67cb43-69cb-785c-259c-7d908a0d773e@intel.com> (raw)
In-Reply-To: CAAG8Em0RUDcgh+dqexdrFY2KHJo95OQOpEnVj7anSSVrVTePRQ@mail.gmail.com
[-- Attachment #1: Type: text/plain, Size: 707 bytes --]
On 9/24/19 1:50 AM, ZhengYu Tsai wrote:
> /usr/bin/ld: attempted static link of dynamic object `/usr/lib/i386-linux-gnu/libcurl-gnutls.so'
> collect2: error: ld returned 1 exit status
> Makefile:2170: recipe for target 'tools/tpm2_getekcertificate' failed
> make: *** [tools/tpm2_getekcertificate] Error 1
>
> *
>
> Steps to Reproduce
> // install tpm2-tss
> ./configure "CFLAGS=--static" --enable-shared=no
> make
> sudo make install
> // Install tpm2-tools
> ./configure "CFLAGS=--static" --enable-shared=no --disable-hardening
Don't you need to set LDFLAGS instead of CFLAGS:
./configure "LDFLAGS=--static" --disable-shared
Thanks,
--
Tadeusz
next reply other threads:[~2019-09-25 20:55 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-09-25 20:55 Tadeusz Struk [this message]
-- strict thread matches above, loose matches on Subject: below --
2019-09-27 1:16 [tpm2] How to generate the statically linked executable ZhengYu Tsai
2019-09-27 1:10 ZhengYu Tsai
2019-09-26 16:44 Tadeusz Struk
2019-09-26 1:40 ZhengYu Tsai
2019-09-24 8:50 ZhengYu Tsai
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=7a67cb43-69cb-785c-259c-7d908a0d773e@intel.com \
--to=tpm2@lists.01.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox