Opened 20 years ago

Closed 20 years ago

Last modified 19 years ago

#2486 closed defect (fixed)

Add CFLAGS, CPPFLAGS and LDFLAGS to libsdl Portfile

Reported by: mbrethen@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.0
Keywords: Cc:
Port:

Description

lbsdl compiles without the necessary 'dlfcn.h' on Jaguar systems (10.2.8).

configure:4668: checking dlfcn.h usability configure:4680: gcc -c -g -O2 conftest.c >&5 conftest.c:55:19: dlfcn.h: No such file or directory configure:4686: $? = 1 configure: failed program was: | /* confdefs.h. */ | | #define PACKAGE_NAME "" | #define PACKAGE_TARNAME "" | #define PACKAGE_VERSION "" | #define PACKAGE_STRING "" | #define PACKAGE_BUGREPORT "" | #define PACKAGE "SDL" | #define VERSION "1.2.7" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | /* end confdefs.h. */

I added the following to the Portfile to get it to find the header.

configure.env LDFLAGS="-L${prefix}/lib" \

CPPFLAGS="-I${prefix}/include"

platform darwin 6 { depends_lib-append lib:libdl:dlcompat }

Change History (2)

comment:1 Changed 20 years ago by toby@…

Resolution: fixed
Status: newclosed

I've committed the moral equivalent of this (only uses the CPPFLAGS and LDFLAGS on Jaguar).

comment:2 Changed 19 years ago by snu@…

op_sys: All
Note: See TracTickets for help on using tickets.