* [Buildroot] [PATCH] fix packages/config on OS X
@ 2007-07-17 8:38 Heikki Lindholm
2007-07-17 12:44 ` Allan Clark
0 siblings, 1 reply; 2+ messages in thread
From: Heikki Lindholm @ 2007-07-17 8:38 UTC (permalink / raw)
To: buildroot
Update to linux 2.6.21 config system broke packages/config on OS X. The
following patch should allow it to build again. Note that "dylib" is
hard-coded in check-lxdialog because HOST_SHREXT, which would be nicer,
is not available at that point.
-- Heikki Lindholm
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: buildroot-070717-config.patch
Url: http://busybox.net/lists/buildroot/attachments/20070717/f9f47994/attachment.diff
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Buildroot] [PATCH] fix packages/config on OS X
2007-07-17 8:38 [Buildroot] [PATCH] fix packages/config on OS X Heikki Lindholm
@ 2007-07-17 12:44 ` Allan Clark
0 siblings, 0 replies; 2+ messages in thread
From: Allan Clark @ 2007-07-17 12:44 UTC (permalink / raw)
To: buildroot
On 7/17/07, Heikki Lindholm <holindho@cs.helsinki.fi> wrote:
> Update to linux 2.6.21 config system broke packages/config on OS X. The
> following patch should allow it to build again. Note that "dylib" is
> hard-coded in check-lxdialog because HOST_SHREXT, which would be nicer,
> is not available at that point.
>
> -- Heikki Lindholm
>
> Index: package/config/lxdialog/check-lxdialog.sh
> ===================================================================
> --- package/config/lxdialog/check-lxdialog.sh (revision 19125)
> +++ package/config/lxdialog/check-lxdialog.sh (working copy)
> @@ -19,6 +19,11 @@
> echo '-lcurses'
> exit
> fi
> + $cc -print-file-name=libncurses.dylib | grep -q /
> + if [ $? -eq 0 ]; then
> + echo '-lncurses'
> + exit
> + fi
> exit 1
> }
>
> Index: package/config/foo.h
> ===================================================================
> --- package/config/foo.h (revision 19125)
> +++ package/config/foo.h (working copy)
> @@ -1,6 +1,8 @@
> #ifndef __KCONFIG_FOO_H
> #define __KCONFIG_FOO_H
> +#ifndef __APPLE__
> #include <features.h>
> +#endif
> #include <limits.h>
>
> #ifndef PATH_MAX
This second patch, I posted a while back asking if anyone needed
features.h. I didn't get any response. I noticed in Linux, it's not
needed. Not sure what platform actually needs features.h here.
__APPLE__ is defined by Apple's GCC? cool.
Allan
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-07-17 12:44 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-17 8:38 [Buildroot] [PATCH] fix packages/config on OS X Heikki Lindholm
2007-07-17 12:44 ` Allan Clark
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox