[Chicken-users] crypt egg: won't compile for Android

2014-11-02 Thread Kristian Lein-Mathisen
Hi all,

Android, I believe, like OpenBSD, has no libcrypt.so but still has support
for the crypt function. The crypt.setyp has already support for removing
the -lcrypt flag during compilation and injecting android into that seems
to do the trick:

diff --git a/crypt.setup b/crypt.setup
index eeaf1d5..9dac09a 100644
--- a/crypt.setup
+++ b/crypt.setup
@@ -28,2 +28,3 @@ EOF
 (openbsd #f)
+(android #f)
 (else #t)

Could someone fix this upstream if this patch is acceptable?
Thank you!
K.
___
Chicken-users mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users


Re: [Chicken-users] Linking object files without additional source

2014-11-02 Thread Thomas Chust

On Sat, 1 Nov 2014, Richard wrote:


[...]
That is not how you link objects files.
You could create an archive for this purpose using:

ar rc foreign-interfaces.a sources/foreign-interfaces/fastcgi.o
sources/foreign-interfaces/sqlite.o
[...]


Hello,

if your linker supports that, it may also be possible to recombine 
multiple objects into a single relocatable output. With GNU ld you could 
do


  ld --relocatable \
  sources/foreign-interfaces/fastcgi.o \
  sources/foreign-interfaces/sqlite.o \
  -o foreign-interfaces.o

However, the CHICKEN compiler driver only directly supports linking things 
together into dynamic libraries or executables.


Ciao,
Thomas


--
When C++ is your hammer, every problem looks like your thumb.


___
Chicken-users mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users


Re: [Chicken-users] crypt egg: won't compile for Android

2014-11-02 Thread Kristian Lein-Mathisen
Perfect, thank you!

K.
On Nov 2, 2014 4:01 PM, Peter Bex peter@xs4all.nl wrote:

 On Sun, Nov 02, 2014 at 02:43:38PM +0100, Kristian Lein-Mathisen wrote:
  Hi all,
 
  Android, I believe, like OpenBSD, has no libcrypt.so but still has
 support
  for the crypt function. The crypt.setyp has already support for removing
  the -lcrypt flag during compilation and injecting android into that
 seems
  to do the trick:

 Hi Kris,

 Thanks for reporting this!  I've just released crypt 0.4.3 which
 includes the change.

 Cheers,
 Peter
 --
 http://www.more-magic.net

___
Chicken-users mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users