diff options
author | lex <lexinhell@gmail.com> | 2016-03-01 09:46:06 +0300 |
---|---|---|
committer | lex <lexinhell@gmail.com> | 2016-03-01 09:46:06 +0300 |
commit | 1eebd0d6bd10332d65209d3a65f15d52f91b141a (patch) | |
tree | eede3ed36066e9b1f8af71ef8604caf621366b70 | |
parent | 9b11b5c463b9035e46037d9d6acb1095e0d001cf (diff) |
Fixes for compile program
-rw-r--r-- | Changes | 3 | ||||
-rwxr-xr-x | Makefile.PL | 4 | ||||
-rwxr-xr-x | MyHTML.pm | 2 |
3 files changed, 6 insertions, 3 deletions
@@ -1,3 +1,6 @@ +0.25 Tue Mar 01 2016 09:43:03 GMT+0300 + And again, fixes for compile program + 0.24 Mon Feb 29 2016 16:16:03 GMT+0300 Fixed compile problem diff --git a/Makefile.PL b/Makefile.PL index 6f7b9e4..dc4546c 100755 --- a/Makefile.PL +++ b/Makefile.PL @@ -41,7 +41,7 @@ my $fdfdf = WriteMakefile( LICENSE => 'Apache 2.0', LINKTYPE => 'dynamic', LIBS => ["-lpthread"], - OBJECT => [@$LIST_OBJECTS, "MyHTML.o"], + LDFROM => join(" ", @$LIST_OBJECTS, "MyHTML.o"), INC => "-I$myhtml_source_dir", #MYEXTLIB => "$myhtml_source_dir/myhtml/myhtml.o", clean => {FILES => "$myhtml_source_dir/myhtml/*libmyhtml* $myhtml_source_dir/*.o $myhtml_source_dir/myhtml/*.o $myhtml_source_dir/myhtml/utils/*.o"} @@ -55,7 +55,7 @@ sub postamble { my @list; foreach my $name (@{$MYINSTALLER::LIST_COMPILE}) { - push @list, "\t". '$(CC) -Wall -Werror -O2 -fPIC --std=c99 -pthread $(INC) -c '. $name; + push @list, "\t". '$(CC) -Wall -Werror -O2 -fPIC --std=c99 -D_POSIX_C_SOURCE=199309L -pthread $(INC) -c '. $name; } return join "\n", @list; @@ -22,7 +22,7 @@ use strict; use vars qw($AUTOLOAD $VERSION $ABSTRACT @ISA @EXPORT); BEGIN { - $VERSION = 0.24; + $VERSION = 0.25; $ABSTRACT = "Fast HTML Parser using Threads with no outside dependencies"; @ISA = qw(Exporter DynaLoader); |