--- main.d/gcc-3.3-3.3.6/debian/rules.defs	2005-06-02 23:33:02.000000000 +0300
+++ main.d/gcc-3.3-3.3.6/debian/rules.defs	2005-06-02 23:34:31.000000000 +0300
@@ -121,358 +121,35 @@
 # multiarch --------------------
 with_multiarch := no
 
-# C --------------------
-enabled_languages := c
-# Build all packages needed for C development
-ifeq ($(with_base_only),yes)
-  with_cdev := no
-else
-  ifeq ($(with_dev),yes)
-    with_cdev := yes
-  else
-    with_cdev := no
-  endif
-endif
-
-# C++ --------------------
-ifeq ($(with_base_only),yes)
-  with_cxx := no
-else
-  with_cxx := yes
-endif
-no_cxx_archs := avr
-ifeq ($(DEB_TARGET_ARCH), $(findstring $(DEB_TARGET_ARCH),$(no_cxx_archs)))
-  with_cxx := disabled for architecture $(DEB_TARGET_ARCH)
-endif
-ifeq (c++, $(findstring c++,$(WITHOUT_LANG)))
-  with_cxx := disabled by environment
-endif
-# Build all packages needed for C++ development
-ifeq ($(with_cxx)-$(with_dev),yes-yes)
-  with_cxxdev := yes
-else
-  with_cxxdev := no
-endif
-
-ifeq ($(with_cxx),yes)
-  enabled_languages += c++
-endif
-
-ifeq ($(with_cxx),yes)
-  with_libcxx := yes
-else
-  with_libcxx := no
-endif
-
-# debugging versions of libstdc++
-ifeq ($(with_cxxdev),yes)
-  with_debug := yes
-else
-  with_debug := no
-endif
-#debug_no_archs := powerpc
-#ifeq ($(DEB_TARGET_ARCH), $(findstring $(DEB_TARGET_ARCH),$(debug_no_archs)))
-#    with_debug := disabled for architecure $(DEB_TARGET_ARCH)
-#endif
-
-# Java --------------------
-# java converted for V3 C++ ABI for some archs
-ifeq ($(with_base_only),yes)
-  with_java := no
-else
-  with_java := yes
-endif
-
-java_no_archs := hurd-i386 mips mipsel freebsd-i386
-ifneq ($(DEB_TARGET_ARCH),i386)
-  ifeq ($(DEB_TARGET_ARCH), $(findstring $(DEB_TARGET_ARCH),$(java_no_archs)))
-    with_java := disabled for architecure $(DEB_TARGET_ARCH)
-  endif
-endif
-ifdef DEB_CROSS
-  with_java := disabled for cross compiler package
-endif
-ifeq (java, $(findstring java,$(WITHOUT_LANG)))
-  with_java := disabled by environment
-endif
-ifneq ($(with_cxx),yes)
-  with_java := disabled, because C++ disabled: $(with_cxx)
-endif
-
-# Build all packages needed for Java development (gcj, libgcj-dev)
-ifeq ($(with_java)-$(with_dev),yes-yes)
-  with_javadev := yes
-else
-  with_javadev := no
-endif
-ifeq ($(with_java),yes)
-  with_libgcj := yes
-else
-  with_libgcj := no
-endif
-
-ifeq ($(with_java),yes)
-  enabled_languages += java
-endif
-
-# fastjar -------------------
-ifeq ($(with_common_pkgs),yes)
-  ifdef DEB_CROSS
-    with_fastjar := disabled for cross compiler package
-  else
-  with_fastjar := yes
-  endif
-else
-  with_fastjar := no
-endif
-
-with_fastjar := built from gcc-3.4 source
-
-# libffi -------------------
-ifeq ($(with_common_libs),yes)
-  with_libffi := yes
-  no_ffi_archs := hurd-i386 freebsd-i386
-  ifneq ($(with_java),yes)
-    ifneq ($(DEB_TARGET_ARCH),i386)
-    ifeq ($(DEB_TARGET_ARCH), $(findstring $(DEB_TARGET_ARCH),$(no_ffi_archs)))
-      with_libffi := disabled for architecure $(DEB_TARGET_ARCH)
-    endif
-    endif
-  endif
-  ifdef DEB_CROSS
-    with_libffi := disabled for cross compiler package
-  endif
-endif
-
-# Fortran --------------------
-ifeq ($(with_base_only),yes)
-  with_fortran := no
-else
-  with_fortran := yes
-endif
-
-ifdef DEB_CROSS
-  with_fortran := disabled for cross compiler package
-endif
-ifeq (f77, $(findstring f77,$(WITHOUT_LANG)))
-  with_fortran := disabled by environment
-endif
-
-# Build all packages needed for Fortran development
-ifeq ($(with_fortran)-$(with_dev),yes-yes)
-  with_fdev := yes
-else
-  with_fdev := no
-endif
-
-ifeq ($(with_common_libs)-$(with_fortran),yes-yes)
-  with_libg2c := yes
-else
-  with_libg2c := no
-  # ABI changes, keep the package for mipsel
-  ifeq ($(DEB_TARGET_ARCH), $(findstring $(DEB_TARGET_ARCH),mipsel))
-    with_libg2c := yes
-  endif
-endif
-
-ifeq ($(with_fortran),yes)
-  enabled_languages += f77
-endif
-
-# protoize --------------------
-ifeq ($(with_common_pkgs),yes)
-  with_proto := yes
-  ifdef DEB_CROSS
-    with_proto := disabled for cross compiler package
-  endif
-else
-  with_proto := no
-endif
-#ifeq ($(with_proto),yes)
-#  enabled_languages += proto
-#endif
-
-# fixincludes --------------------
-ifeq ($(with_common_pkgs),yes)
-  with_fixincl := yes
-  ifdef DEB_CROSS
-    with_fixincl := disabled for cross compiler package
-  endif
-else
-  with_fixincl := no
-endif
-
-# Pascal --------------------
-with_pascal := yes
-ifneq ($(with_dev),yes)
-  with_pascal := no
-endif
-
-#pascal_no_archs := netbsd-i386 arm
-ifneq ($(DEB_TARGET_ARCH),i386)
-  ifeq ($(DEB_TARGET_ARCH),$(findstring $(DEB_TARGET_ARCH),$(pascal_no_archs)))
-    with_pascal := disabled for architecture $(DEB_TARGET_ARCH)
-  endif
-endif
-with_gpidump := yes
-#ifeq ($(DEB_TARGET_ARCH),$(findstring $(DEB_TARGET_ARCH),s390 powerpc))
-#  with_gpidump := disabled for architecture $(DEB_TARGET_ARCH)
-#endif
-pascal_version := 20030830
-ifdef DEB_CROSS
-  with_pascal := disabled for cross compiler package
-endif
-ifeq (pascal, $(findstring pascal,$(WITHOUT_LANG)))
-  with_pascal := disabled by environment
-endif
-ifeq ($(with_pascal),yes)
-  enabled_languages += pascal
-endif
-
-# ObjC --------------------
-ifeq ($(with_base_only),yes)
-  with_objc := no
-else
-  with_objc := yes
-endif
-# the ObjC runtime with garbage collection enabled needs the Boehm GC
-with_objc_gc := yes
-
-# disable ObjC garbage collection library (needs libgc)
-libgc_no_archs := avr freebsd-i386
-ifneq ($(DEB_TARGET_ARCH),i386)
-  ifeq ($(DEB_TARGET_ARCH),$(findstring $(DEB_TARGET_ARCH),$(libgc_no_archs)))
-    with_objc_gc := disabled for architecture $(DEB_TARGET_ARCH)
-  endif
-endif
-ifdef DEB_CROSS
-  with_objc := disabled for cross compiler package
-endif
-ifeq (objc, $(findstring objc,$(WITHOUT_LANG)))
-  with_objc := disabled by environment
-endif
-
-ifneq ($(with_objc),yes)
-  with_objc_gc := $(with_objc)
-endif
-
-# Build all packages needed for Objective-C development
-ifeq ($(with_objc)-$(with_dev),yes-yes)
-  with_objcdev := yes
-else
-  with_objcdev := no
-endif
-ifeq ($(with_common_libs)-$(with_objc),yes-yes)
-  with_libobjc := yes
-else
-  with_libobjc := no
-endif
-
-ifeq ($(with_objc),yes)
-  enabled_languages += objc
-endif
-
-# Ada --------------------
-with_ada := yes
-ifneq ($(with_dev),yes)
-  with_ada := no
-endif
-
-with_libgnat := yes
-ada_no_archs := arm hurd-i386 m68k freebsd-i386 netbsd-i386
-ifneq ($(DEB_TARGET_ARCH),i386)
-  ifeq ($(DEB_TARGET_ARCH), $(findstring $(DEB_TARGET_ARCH),$(ada_no_archs)))
-    with_ada := disabled for architecure $(DEB_TARGET_ARCH)
-  endif
-endif
-ifeq (ada, $(findstring ada,$(WITHOUT_LANG)))
-  with_ada := disabled by environment
-endif
+enabled_languages := c c++
+with_cdev := yes
+with_cxx := yes
+with_cxxdev := yes
+with_libcxx := yes
+with_debug := no
+with_cxa_atexit := no
+with_java := no
+with_javadev := no
+with_libgcj := no
+with_fastjar := no
+with_libffi := no
+with_fortran := no
+with_fdev := no
+with_libg2c := no
+with_proto := no
+with_fixincl := no
+with_pascal := no
+with_gpidump := no
+with_objc := no
+with_objc_gc := no
+with_objcdev := no
+with_ada := no
 with_libgnat := no
-ifdef DEB_CROSS
-  with_ada := disabled for cross compiler package
-endif
-
-# needed for 3.4 on alpha
-ifeq ($(DEB_HOST_ARCH),$(findstring $(DEB_HOST_ARCH),xxxxx))
-  with_ada_bootstrap_workaround := yes
-endif
-
-ifeq ($(with_ada),yes)
-  enabled_languages += ada
-else
-  with_libgnat := $(with_ada)
-  with_libgnat := disabled
-endif
-
-# treelang --------------------
-ifeq ($(with_base_only),yes)
-  with_treelang := no
-else
-  ifeq ($(with_dev),yes)
-    with_treelang := yes
-  else
-    with_treelang := no
-  endif
-endif
-tl_no_archs := powerpc
-ifeq ($(DEB_TARGET_ARCH), $(findstring $(DEB_TARGET_ARCH),$(tl_no_archs)))
-    with_treelang := disabled for architecure $(DEB_TARGET_ARCH)
-endif
-ifdef DEB_CROSS
-  with_treelang := disabled for cross compiler package
-endif
-ifeq (treelang, $(findstring treelang,$(WITHOUT_LANG)))
-  with_treelang := disabled by environment
-endif
-
-ifeq ($(with_treelang),yes)
-  enabled_languages += treelang
-endif
-
-# Shared libgcc --------------------
-with_shared_libgcc := yes
-
-#ifeq ($(with_common_libs),yes)
-#  with_libgcc := yes
-#else
-ifdef DEB_CROSS
-  with_libgcc := yes
-else
-  libgcc_archs := hppa m68k netbsd-i386
-  ifeq ($(DEB_TARGET_ARCH),i386)
-    with_libgcc := no
-    with_shared_libgcc := no
-  else
-    ifeq ($(DEB_TARGET_ARCH), $(findstring $(DEB_TARGET_ARCH),$(libgcc_archs)))
-      with_libgcc := yes
-    else
-      with_libgcc := no
-      with_shared_libgcc := no
-    endif
-  endif
-endif
-#endif
-
-# run testsuite --------------------
-with_check := yes
-# If you don't want to run the gcc testsuite, set `with_check' to `no'
-#with_check := disabled by hand
-ifeq ($(with_base_only),yes)
-  with_check := no
-endif
-ifdef DEB_CROSS
-  with_check := disabled for cross compiler package
-endif
-check_no_archs := hurd-i386 m68k
-ifneq ($(DEB_TARGET_ARCH),i386)
-  ifeq ($(DEB_TARGET_ARCH), $(findstring $(DEB_TARGET_ARCH),$(check_no_archs)))
-    with_check :=disabled for $(DEB_TARGET_ARCH)
-  endif
-endif
-ifneq ($(WITHOUT_CHECK),)
-  with_check := disabled by environment
-endif
+with_ada_bootstrap_workaround := no
+with_treelang := no
+with_libgcc := no
+with_shared_libgcc := no
+with_check := no
 
 # powerpc nof libraries --------------------
 with_libnof := no
--- /main.d/gcc-3.3-3.3.6/debian/rules2	2005-06-02 23:33:02.000000000 +0300
+++ main.d/gcc-3.3-3.3.6/debian/rules2	2005-06-02 23:36:06.000000000 +0300
@@ -981,6 +981,9 @@
 	ln -s $(libdir) $(d)/lib64
 	mkdir -p $(d)/usr/$(libdir)
 	ln -s $(libdir) $(d)/usr/lib64
+	# hack to make things compile, stupid PF hack
+	mkdir -p $(d)/$(PF)/lib
+	ln -s $(libdir) $(d)/$(PF)/lib64				
 endif
 
 	: # Install everything
