Since libt2n migrates to castxml, gccxml files do not need to be installed
 configure_file(${CMAKE_SOURCE_DIR}/libt2n.pc.in ${CMAKE_BINARY_DIR}/libt2n.pc @ONLY)
 install(FILES ${CMAKE_BINARY_DIR}/libt2n.pc DESTINATION lib/pkgconfig)
 
-# Installation of scripts
-install(PROGRAMS libt2n-gccxml.sh DESTINATION bin)
-
 # Subdirectories
 set(CPACK_SET_DESTDIR "ON")
 add_subdirectory(src)
 
+++ /dev/null
-#!/bin/sh
-
-# Filter "-pthread" option from newer gcc versions
-# as it's currently unsupported in gccxml.
-EOO=0
-while [[ $1 ]]; do
-if ! ((EOO)); then
-  case "$1" in
-    -pthread)
-      shift
-      ;;
-    --)
-      EOO=1
-      OPTIONS="$OPTIONS $1"
-      shift
-      ;;
-    *)
-      OPTIONS="$OPTIONS $1"
-      shift
-      ;;
-  esac
-else
-  OPTIONS="$OPTIONS $1"
-  shift
-fi
-done
-
-gccxml $OPTIONS