pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: compiling



Adrian Portelli <adrianp%stindustries.net@localhost> writes:

> CFLAGS+= -fPIC to the Makefile in the package should do the job.  If
> it's found to fix it then I'd image the proper fix would be to wrap
> it in a .if ${OPSYS} and/or .if ${MACHINE_ARC} depending on where
> the fix actually is needed.  Looking at it now there's already a
> line that adds -fPIC for NetBSD so I'd just suggest changing that to
> include Linux.

I have verified that the fix you propose works.  It would be great if
someone with a commit bit would check in a patch something like this:

cvs diff Makefile
Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/print/ghostscript/Makefile,v
retrieving revision 1.52
diff -u -r1.52 Makefile
--- Makefile    5 Sep 2008 15:50:03 -0000       1.52
+++ Makefile    1 Dec 2008 01:36:09 -0000
@@ -50,7 +50,7 @@
 CONFIGURE_ENV+=                ac_cv_func_fopen64=no
 .endif

-.if ${OPSYS} == "NetBSD"
+.if ${OPSYS} == "NetBSD" || ${OPSYS} == "Linux"
 CFLAGS+=               -fPIC
 .endif

Thanks,
-russ



Home | Main Index | Thread Index | Old Index