<commit_before>--- cfitsio/Makefile.in	2009-07-14 13:40:37.000000000 -0700
+++ cfitsio.new/Makefile.in	2011-01-13 11:36:17.241181415 -0800
@@ -18,6 +18,7 @@
 # testprog targets. See also changes and comments in configure.in
 #
 
+srcdir		= @srcdir@
 prefix		= @prefix@
 exec_prefix	= @exec_prefix@
 DESTDIR		= 
@@ -41,7 +42,7 @@
 SHLIB_LD =	@SHLIB_LD@
 SHLIB_SUFFIX =	@SHLIB_SUFFIX@
 
-.c.o:
+%.o:		$(srcdir)/%.c
 		$(CC) -c $(CFLAGS) $(DEFS) $<
 
 
@@ -97,7 +98,7 @@
 		if [ -f libcfitsio${SHLIB_SUFFIX} ]; then \
 			/bin/mv libcfitsio${SHLIB_SUFFIX} ${CFITSIO_LIB}; \
 		fi; \
-		/bin/cp fitsio.h fitsio2.h longnam.h drvrsmem.h ${CFITSIO_INCLUDE}/; \
+		/bin/cp $(srcdir)/fitsio.h $(srcdir)/fitsio2.h $(srcdir)/longnam.h $(srcdir)/drvrsmem.h ${CFITSIO_INCLUDE}/; \
		/bin/cp cfitsio.pc ${CFITSIO_LIB}/pkgconfig
 
 smem:		smem.o libcfitsio.a ${OBJECTS}
 		${CC} $(CFLAGS) $(DEFS) -o smem smem.o -L. -lcfitsio -lm<commit_msg>Update cfitsio patch:  - remove -fPIC, http://code.google.com/p/nativeclient/issues/detail?id=1381  - add -lnosys to the linker to get dummy impl of nacl-forbidden calls<commit_after>diff -u cfitsio/Makefile.in cfitsio.new/Makefile.in
--- cfitsio/Makefile.in	2011-01-10 09:07:02.000000000 -0800
+++ cfitsio.new/Makefile.in	2011-02-08 15:48:16.947612000 -0800
@@ -18,6 +18,7 @@
 # testprog targets. See also changes and comments in configure.in
 #
 
+srcdir		= @srcdir@
 prefix		= @prefix@
 exec_prefix	= @exec_prefix@
 DESTDIR		= 
@@ -34,14 +35,14 @@
 FC =		@FC@
 LDFLAGS =	$(CFLAGS)
 DEFS =		@DEFS@
-LIBS =		@LIBS@
+LIBS =		@LIBS@ -lnosys
 FLEX =		flex
 BISON =		bison
 
 SHLIB_LD =	@SHLIB_LD@
 SHLIB_SUFFIX =	@SHLIB_SUFFIX@
 
-.c.o:
+%.o:		$(srcdir)/%.c
 		$(CC) -c $(CFLAGS) $(DEFS) $<
 
 
@@ -99,7 +100,7 @@
 		if [ -f libcfitsio${SHLIB_SUFFIX} ]; then \
 			/bin/mv libcfitsio${SHLIB_SUFFIX} ${CFITSIO_LIB}; \
 		fi; \
-		/bin/cp fitsio.h fitsio2.h longnam.h drvrsmem.h ${CFITSIO_INCLUDE}/; \
+		/bin/cp $(srcdir)/fitsio.h $(srcdir)/fitsio2.h $(srcdir)/longnam.h $(srcdir)/drvrsmem.h ${CFITSIO_INCLUDE}/; \
 		/bin/cp cfitsio.pc ${CFITSIO_LIB}/pkgconfig
 
 smem:		smem.o libcfitsio.a ${OBJECTS}
diff -u cfitsio/configure cfitsio.new/configure
--- cfitsio/configure	2011-01-10 09:07:41.000000000 -0800
+++ cfitsio.new/configure	2011-02-08 15:45:46.156363000 -0800
@@ -3771,7 +3771,7 @@
   darwin)
     SHLIB_LD="$CC -dynamiclib"
     SHLIB_SUFFIX=".dylib"
-    lhea_shlib_cflags="-fPIC -fno-common"
+    lhea_shlib_cflags="-fno-common"
     ;;
   hpu)
     SHLIB_LD="ld -b"
@@ -3800,7 +3800,6 @@
 # if test "x$GCC" = xyes; then
 if test "x$GCC" = xyes && test "x$EXT" != xdarwin && test "x$EXT" != xcygwin; then
   SHLIB_LD="$CC -shared"
-  lhea_shlib_cflags='-fPIC'
 fi
 if test "x$lhea_shlib_cflags" != x; then
   CFLAGS="$CFLAGS $lhea_shlib_cflags"
{'fraction_non_alphanumeric': 0.18734268248831357, 'fraction_numerical': 0.08234448040273283, 'mean_word_length': 3.36734693877551, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 3, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '122667', 'n_tokens_mistral': 1490, 'n_tokens_neox': 1308, 'n_words': 234}