diff options
author | jlam <jlam> | 2001-06-29 18:27:30 +0000 |
---|---|---|
committer | jlam <jlam> | 2001-06-29 18:27:30 +0000 |
commit | faa42016d731868415b671ed1b744549734a922f (patch) | |
tree | 29e2f0e57a37ca45d4510fb38498527a0adc6d00 /pkgtools/xpkgwedge/files | |
parent | 549175b0384cfd11bd183a4547194e6a8514079f (diff) | |
download | pkgsrc-faa42016d731868415b671ed1b744549734a922f.tar.gz |
Update xpkgwedge to 1.3. Changes from version 1.2 are adding a section
triggered by the definition of "BuildLink" that forces ${BUILDLINK_DIR}
to be searched ahead of ${LOCALBASE} and ${X11BASE} for headers and
libraries.
Diffstat (limited to 'pkgtools/xpkgwedge/files')
-rw-r--r-- | pkgtools/xpkgwedge/files/xpkgwedge.def | 30 |
1 files changed, 29 insertions, 1 deletions
diff --git a/pkgtools/xpkgwedge/files/xpkgwedge.def b/pkgtools/xpkgwedge/files/xpkgwedge.def index c7e33e8a270..791a1de197a 100644 --- a/pkgtools/xpkgwedge/files/xpkgwedge.def +++ b/pkgtools/xpkgwedge/files/xpkgwedge.def @@ -1,4 +1,4 @@ -/* $NetBSD: xpkgwedge.def,v 1.5 2001/06/16 08:53:49 veego Exp $ */ +/* $NetBSD: xpkgwedge.def,v 1.6 2001/06/29 18:27:30 jlam Exp $ */ #ifdef AfterVendorCF @@ -63,4 +63,32 @@ InstallNamedTargetNoClobber(install,file.ad,$(INSTAPPFLAGS),$(XAPPLOADDIR),class #define ImakeCmd imake -I$(PREFIX)/lib/X11/config #endif +#ifdef BuildLink +/* + * Force the buildlink include and lib directories to the head of the + * compiler search paths. The include directory is added through the + * C{,plusplus}DebugFlags, which are the first options given to the + * compiler. It is _required_ that BUILDLINK_DIR be defined in the + * environment. + */ +#ifdef UseInstalled +# ifndef BuildLinkCppFlags +# define BuildLinkCppFlags -I$(BUILDLINK_DIR)/include $(PKGSRC_CPPFLAGS) +# endif +# ifndef BuildLinkLdFlags +# define BuildLinkLdFlags -L$(BUILDLINK_DIR)/lib +# endif +# undef DependFlags +# define DependFlags BuildLinkCppFlags +# undef OptimizedCDebugFlags +# define OptimizedCDebugFlags -O2 BuildLinkCppFlags $(PKGSRC_CFLAGS) +# undef OptimizedCplusplusDebugFlags +# define OptimizedCplusplusDebugFlags -O2 BuildLinkCppFlags $(PKGSRC_CXXFLAGS) +# undef LdPreLib +# define LdPreLib BuildLinkLdFlags +# undef LdPostLib +# define LdPostLib BuildLinkLdFlags #endif +#endif /* BuildLink */ + +#endif /* AfterVendorCF */ |