2002-02-01 Havoc Pennington <hp@redhat.com>

Author: hp
Date: 2002-02-01 22:31:43 GMT
2002-02-01  Havoc Pennington  <hp@redhat.com>

	* pkg.c (verify_package): don't warn about /usr/include /usr/lib
	in cflags/libs, too annoying to fix
This commit is contained in:
Arch Librarian 2005-07-14 13:04:52 +00:00
parent d192f98006
commit df41ad0951
2 changed files with 9 additions and 4 deletions

View file

@ -1,3 +1,8 @@
2002-02-01 Havoc Pennington <hp@redhat.com>
* pkg.c (verify_package): don't warn about /usr/include /usr/lib
in cflags/libs, too annoying to fix
2002-02-01 Havoc Pennington <hp@redhat.com>
Throughout: cast chars to guchar before passing to isspace, etc.,

8
pkg.c
View file

@ -673,8 +673,8 @@ verify_package (Package *pkg)
if (strcmp (iter->data, "-I/usr/include") == 0 ||
strcmp (iter->data, "-I /usr/include") == 0)
{
verbose_error ("Package %s has -I/usr/include in Cflags; this may cause problems and is not recommended\n",
pkg->name);
debug_spew ("Package %s has -I/usr/include in Cflags\n",
pkg->name);
if (g_getenv ("PKG_CONFIG_ALLOW_SYSTEM_CFLAGS") == NULL)
{
iter->data = NULL;
@ -699,8 +699,8 @@ verify_package (Package *pkg)
if (strcmp (iter->data, "-L/usr/lib") == 0 ||
strcmp (iter->data, "-L /usr/lib") == 0)
{
verbose_error ("Package %s has -L/usr/lib in Libs; this may cause problems and is not recommended\n",
pkg->name);
debug_spew ("Package %s has -L/usr/lib in Libs\n",
pkg->name);
if (g_getenv ("PKG_CONFIG_ALLOW_SYSTEM_LIBS") == NULL)
{
iter->data = NULL;