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

Re: Please help me fix these build problems



On 01/03/2014 11:06 AM, T o n g wrote:
> Hi, 
> 
> I'm trying to convert zh-autoconvert from pre-dh to using the dh for the 
> making. 
> I don't know how to fix the following problems:
> 
> W: zh-autoconvert: hardening-no-relro usr/bin/autogb

To fix this one, you need to add $CPPFLAGS and $LDFLAGS to your linker command line in your Makefile.

> autogb:autogb.c  hzlib
>         $(CC) $(CFLAG) $(LIBS) autogb.c -lhz -o autogb
> autogb-static:autogb.c  hzlib
>         $(CC) $(CFLAG) autogb.c lib/libhz.a -o autogb

autogb:autogb.c  hzlib
        $(CC) $(CPPFLAGS) $(CFLAG) $(LDFLAGS) $(LIBS) autogb.c -lhz -o autogb
autogb-static:autogb.c  hzlib
        $(CC) $(CPPFLAGS) $(CFLAG) $(LDFLAGS) autogb.c lib/libhz.a -o autogb

-- 
Stephen M. Webb  <stephen.webb@bregmasoft.ca>


Reply to: