On 11/01/15 15:05, Daniel Dickman wrote:


On Nov 1, 2015, at 8:24 AM, Fred <open...@crowsons.com> wrote:

Hi ports@

I'm trying to bring our pcc port upto 1.1.0

With the attached diff pcc builds, but when I try to compile a file I get:

port:fred ~/code/c/stuff> pcc -o hello hw.c
ld: cannot find -lpcc
error: ld terminated with status 1

you need libpcc.

I wouldn't try for 1.1.0. If I remember correctly it had a build problem and 
also lots of fixes to pcc since then. here's a more recent diff to get close to 
current pcc which you can play with if interested:

http://dickman.org/openbsd/pcc/


Thanks that all now builds - just needed the following tweak in pcc-libs configure:

--- configure   Tue Dec  2 19:12:30 2014
+++ /home/fred/tmp/configure    Sun Nov  1 21:02:40 2015
@@ -2046,6 +2046,7 @@ case "$target_os" in
        targos=openbsd
        case "$target_cpu" in
            i?86) targmach=i386 ;;
+           x86_64) targmach=amd64 ;;
            vax) targmach=vax ;;
            powerpc) targmach=powerpc endian=big ;;
            sparc64) targmach=sparc64 endian=big ;;


Cheers

Fred

Reply via email to