Codebase list libcryptx-perl / ba935b0
fix cpantesters build failures/warnings Karel Miko 6 years ago
3 changed file(s) with 12 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
1010 glob('src/ltc/*/*/*/*/*.c'),
1111 );
1212 my $myextlib = "src/liballinone$Config{lib_ext}";
13 my $mycflags = "$Config{cccdlflags} $Config{ccflags} $Config{optimize} -Iltm -Iltc/headers -DLTC_SOURCE -DLTC_NO_TEST -DLTC_NO_PROTOTYPES -DLTM_DESC";
13 my $mycflags = "$Config{ccflags}";
14 #my $mycflags = "$Config{cccdlflags} $Config{ccflags} $Config{optimize}";
1415
1516 #FIX: gcc with -flto is a trouble maker see https://github.com/DCIT/perl-CryptX/issues/32
1617 $mycflags =~ s/-flto\b//g;
18
19 #FIX: avoid -Wwrite-strings -Wcast-qual -pedantic -pedantic-errors -ansi -std=c89
20 $mycflags =~ s/-pedantic\b//g;
21 $mycflags =~ s/-pedantic-errors\b//g;
22 $mycflags =~ s/-std=c89\b//g;
23 $mycflags =~ s/-ansi\b//g;
24 $mycflags =~ s/-Wwrite-strings\b//g;
25 $mycflags =~ s/-Wcast-qual\b//g;
1726
1827 #FIX: avoid "ar: fatal: Numeric group ID too large" see https://github.com/DCIT/perl-CryptX/issues/33
1928 my $myarflags = '$(AR_STATIC_ARGS)';
164164 .SUFFIXES: .o .c
165165
166166 .c$(OBJ_EXT):
167 $(CC) $(CFLAGS) -c $< -o $@
167 $(CC) $(CFLAGS) -Iltm -Iltc/headers -DLTC_SOURCE -DLTC_NO_TEST -DLTC_NO_PROTOTYPES -DLTM_DESC -c $< -o $@
166166 $(RM_F) $(OBJS) liballinone.lib
167167
168168 .c.obj:
169 cl $(CFLAGS) /c $< /Fo$@
169 cl $(CFLAGS) /Iltm /Iltc/headers /DLTC_SOURCE /DLTC_NO_TEST /DLTC_NO_PROTOTYPES /DLTM_DESC /c $< /Fo$@
170170