~dieggsy/chicken-genann

5d1eef702de1e8842ee49072947a752665af4b27 — Peter Bex 4 years ago cb65321
Include the source file instead of relying on the c-objects option.

This ensures the egg will work in CHICKEN 5.0.0 and 5.1.0 as well.
With 5.1.0, the c-object option should work, but due to another bug,
the egg would fail with a -fPIC warning.  See
https://bugs.call-cc.org/ticket/1659 for more information.
2 files changed, 3 insertions(+), 2 deletions(-)

M genann.egg
M genann.scm
M genann.egg => genann.egg +2 -2
@@ 3,6 3,6 @@
 (category misc)
 (license "Zlib")
 (components
  (c-object genann_src)
  #;(c-object genann_src)
  (extension genann
             (objects genann_src))))
             #;(objects genann_src))))

M genann.scm => genann.scm +1 -0
@@ 38,6 38,7 @@
          (only srfi-4 make-f64vector))

  (foreign-declare "#include \"genann.h\"")
  (foreign-declare "#include \"genann_src.c\"")

  (define-record-type genann
    (ptr->genann ptr)