]> git.sesse.net Git - vlc/commitdiff
contrib: don't include config.h in installed pthread.h
authorPierre Ynard <linkfanel@yahoo.fr>
Sun, 8 May 2011 16:40:16 +0000 (18:40 +0200)
committerPierre Ynard <linkfanel@yahoo.fr>
Sun, 8 May 2011 16:40:16 +0000 (18:40 +0200)
It's retarded for an installed file to depend on it

extras/contrib/src/contrib-src.mak

index 8a96f69f248dbd9a640832b013124f8b8fd59303..a3a63bf4e7c03e912131ec1dc24a3cfc57568df7 100644 (file)
@@ -2303,7 +2303,7 @@ ifdef HAVE_WIN64
 endif
 
 .pthreads: pthreads
-       (cd $<; $(HOSTCC) $(PTHREADSCONF) make MAKEFLAGS=-j1 GC GC-static && mkdir -p $(PREFIX)/include && cp -v pthread.h sched.h semaphore.h $(PREFIX)/include/ && mkdir -p $(PREFIX)/lib && cp -v *.a *.dll $(PREFIX)/lib/)
+       (cd $<; $(HOSTCC) $(PTHREADSCONF) make MAKEFLAGS=-j1 GC GC-static && mkdir -p $(PREFIX)/include && cp -v pthread.h sched.h semaphore.h $(PREFIX)/include/ && sed -i 's/#if HAVE_CONFIG_H/#if 0 \&\& HAVE_CONFIG_H/' $(PREFIX)/include/pthread.h && mkdir -p $(PREFIX)/lib && cp -v *.a *.dll $(PREFIX)/lib/)
        $(INSTALL_NAME)
        touch $@