#19 Patch allow support of FreeBSD Kernel in Debian

open
5
2010-04-26
2010-04-18
Sylvestre Ledru
No

Hello,

I wrote this patch to allow the build of Atlas under Debian with a FreeBSD kernel.
the elf is different with this kernel.

Thanks

Discussion

  • Change the elf if freebsd system

     
    Attachments
    • labels: --> configure improvement
    • assigned_to: nobody --> rwhaley
     
  • I notice you are using the __FreeBSD_* macro rather than if FreeBSD is the OS. Does ATLAS not detect the OS as FreeBSD on the platform you mention (I don't like to rely on nonstandard #defines)?

    Thanks,
    Clint

     
  • Well, trick case.
    Debian has the capability to use either Linux or FreeBSD kernel.
    In my case, I am using a macro provided by gcc. I don't know how standard it is. Sorry.

     
  • Yeah, my question is if ATLAS detects that the OS is FreeBSD when you use the FreeBSD kernel. If it does, I can sub in the OS test for the macro test.

    Thanks,
    Clint

     
  • This seems like the first thing to fix then; if the OS is FreeBSD but ATLAS detects Linux something is wrong. I'm not sure I'm understanding what this is anyway. Is this the debian distro with a BSD kernel, or something? What does uname -s say on this platform?

     
  • $ uname -s
    GNU/kFreeBSD

    It is indeed a Debian with FreeBSD kernel.

    If you want, I can try to fix this issue.