pkgsrc-Users archive

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

Re: ham/dpbox trying to build this unstripped, no joy



Thank you, now it has debugging symbols.

On Tue, Jun 18, 2024 at 3:39 PM Chris Maness
<christopher.maness%gmail.com@localhost> wrote:
>
> On Tue, Jun 18, 2024 at 3:03 PM Rob Whitlock <rwhitlock22%gmail.com@localhost> wrote:
> >
> >
> > > On Jun 18, 2024, at 5:37 PM, Chris Maness <christopher.maness%gmail.com@localhost> wrote:
> > >
> > > Ok, tried setting the environment variables and also removed -s in
> > > Makefile.netbsd then did,
> > > make >> output.txt
> > > make install >> output.txt, and still no joy.
> > >
> > > The contents of output.txt:
> > >
> > > bash-5.2# cat output.txt
> >
> > [snip]
> >
> > > gcc -s filesys.o box.o box_mem.o box_send.o box_sf.o box_sub.o
> > > box_sys.o boxdbox.o boxbcm.o box_tim.o boxglobl.o boxlocal.o
> > > box_inou.o box_serv.o boxbcast.o boxfserv.o yapp.o crc.o huffman.o
> > > pastrix.o sort.o box_file.o tools.o status.o shell.o init.o linpack.o
> > > main.o box_init.o box_garb.o box_logs.o box_wp.o box_rout.o box_scan.o
> > > md2md5.o -lm -o dpbox
> >
> > It looks like it's getting stripped here because of the -s option on the linking step.
>
> This better:
>
> DEFS            = $(SYSTEM) $(NOSHELL)
> CC              = gcc
> CPP             = $(CC) -E
> CFLAGS          = -g -Wall -O2 -funsigned-char -fomit-frame-pointer
> -fno-strength-reduce
> CRAWLERCFLAGS   = -Wall -O3 -funsigned-char -fomit-frame-pointer
> -fno-strength-reduce
> LD              = $(CC)
> LDFLAGS         =
> LIBS            = -lm
>
> HDRS            = filesys.h box.h box_file.h box_mem.h box_send.h box_sf.h \
>                   box_sub.h box_sys.h boxdbox.h boxbcm.h box_tim.h box_init.h \
>                   boxglobl.h boxlocal.h box_inou.h box_serv.h boxbcast.h \
>                   boxfserv.h yapp.h crc.h huffman.h pastrix.h sort.h tools.h \
>                   init.h dpbox.h ifacedef.h status.h linpack.h shell.h main.h \
>                   box_garb.h box_logs.h box_wp.h box_rout.h box_scan.h md2md5.h
>
> OBJS            = filesys.o box.o box_mem.o box_send.o box_sf.o box_sub.o \
>                   box_sys.o boxdbox.o boxbcm.o box_tim.o boxglobl.o boxlocal.o \
>                   box_inou.o box_serv.o boxbcast.o boxfserv.o yapp.o crc.o \
>                   huffman.o pastrix.o sort.o box_file.o tools.o status.o \
>                   shell.o init.o linpack.o main.o box_init.o box_garb.o \
>                   box_logs.o box_wp.o box_rout.o box_scan.o md2md5.o
>
>
> --
> Thanks,
> Chris Maness



-- 
Thanks,
Chris Maness


Home | Main Index | Thread Index | Old Index