Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] Using openssl functions in another package
@ 2015-11-20 19:35 David Van Arnem
  2015-11-20 22:06 ` Arnout Vandecappelle
  0 siblings, 1 reply; 2+ messages in thread
From: David Van Arnem @ 2015-11-20 19:35 UTC (permalink / raw)
  To: buildroot

Hi all,

I have a custom package (source in C) that uses some of OpenSSL's SHA 
functions to perform hashing.  I can build successfully outside of the 
buildroot tree by both including the SHA header file in the C source with:

#include <openssl/sha.h>

and then adding the crypto library in the CC command:

$(CC) -lcrypto -o prog prog.c

However, when I try to build the package in buildroot, using the same CC 
command in the Makefile, I get the following error:

prog.c: fatal error: openssl/sha.h: No such file or directory

I have enabled the openssl package in my buildroot configuration, and 
set up my custom package's Config.in to depend on it:

depends on BR2_PACKAGE_OPENSSL

My target is a MicroBlaze (little endian, single core) processor.  What 
else might I need to do to use the OpenSSL SHA functions correctly and 
avoid this error?

-- 
Thanks,
David

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-11-20 22:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-11-20 19:35 [Buildroot] Using openssl functions in another package David Van Arnem
2015-11-20 22:06 ` Arnout Vandecappelle

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox