Re: nss build question:how to set CFLAGS and LDFLAGS
Hubert Kario <[email protected]> Fri, 29 Jun 2018 12:38:13 +0200
| Newsgroups | gmane.comp.mozilla.security |
|---|---|
| Message-ID | <[email protected]> |
--===============9003450851296697421== Content-Type: multipart/signed; boundary="nextPart2624080.M4IVC67HMz"; micalg="pgp-sha512"; protocol="application/pgp-signature" --nextPart2624080.M4IVC67HMz Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" On Wednesday, 16 May 2018 15:05:21 CEST [email protected] wrote: > NSS-3.33 >=20 > I wanted to get code coverage of nss(mainly certutil).So I tried to add > '-fprofile-arcs -ftest-coverage' to CFLAGS in command.mk. While it failed, > it seems it's because compiling and linking are separate. '-fprofile-arcs > -ftest-coverage' also need to be added to LDFLAGS,while I didn't find it. >=20 > Can you tell me how to configure Makefile or others to get code coverage,= or > is there any convenient way to set CFLAGS CXXFLAGS and LDFLAGS, just like > './configure CFLAGS=3D...' I believe that compiling the library with USE_GCOV=3D1 environment variable= set=20 should be enough. =2D-=20 Regards, Hubert Kario Senior Quality Engineer, QE BaseOS Security team Web: www.cz.redhat.com Red Hat Czech s.r.o., Purky=C5=88ova 115, 612 00 Brno, Czech Republic --nextPart2624080.M4IVC67HMz Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part. Content-Transfer-Encoding: 7Bit -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEYeeuxEU+3unL/K+dkqjRuAHS9fUFAls2DBUACgkQkqjRuAHS 9fXUIw/+IboI6ParLgPQIKR4mlSIWcix2rQv5hjp/waFtCVBSmQUetJWysc05ZEd HDSy9Z7cTqqUGMpONNbOyJdGAW1VbpB7YrlnsSlxCyOaOmqjlARZM2rRQvVbidEW jU/Ny6OhKgIG8yxPr5K5N9WH3taF+NwA12eCUiI+gWfcEP+JKxOTE3ETUvDXu/bJ ND9C/sHS9kU5wuLmcRqyKTrWBz5g8s0+08gpxvNdi3/aBR64HfD+L4hyZR63c8WQ O0oxwN+whbrnjMLlPioSqHp3DmoKCBwhHzT4P6AR9yMvbU24oSvd5LFbM9EQji4Z YzbeOjEgTUokDQC8S6jQEGI0fU8myjK06O8e8tKqtXHep0e8P2QEAUCiI90skyxI uyWZQ2U0/nojcDt1O4CbOyZfG9h7a27vpz2SYq+pEEEh0p8QiflU5x5I8qjAeTdf hu4PTA2OLUf77bFUezjT3nhANlSIanji/Zw1Ow4ngvemDfh8ghAErbCuM+i73Nco V2jSvszrKrxAxBZvmd0ZXS5r9eu/TiL3Rm+8AgJ+2AWzOAAbDWiYLGno07D1Jw0V t7H1Zvvbh79WChZv1eQkuy/FXUfkvgQ2CZVkqymxDXRu1jUlLDUH14TWSAWrZhT5 RWmi/ej3RBn8KwRsZEiT3lJIjy2IPuooo++BxETH/ol0UbCp578= =DruM -----END PGP SIGNATURE----- --nextPart2624080.M4IVC67HMz-- --===============9003450851296697421== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ dev-security mailing list [email protected] https://lists.mozilla.org/listinfo/dev-security --===============9003450851296697421==--