diff --git a/ChangeLog b/ChangeLog
index 2f029073ac0652b600df13e345958589a58f9d4d..38909b78a91da6c0b65b87a1dcb7b44898fe25db 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2001-05-22  Alexandre Oliva  <aoliva@redhat.com>
+
+	* ltcf-cxx.sh (allow_undefined_flag, no_undefined_flag)
+	[aix4*|aix5*]: Prepend blank.
+
 2001-05-20  Alexandre Oliva  <aoliva@redhat.com>
 
 	* ltconfig, ltmain.sh, libtool.m4, ltcf-c.sh, ltcf-cxx.sh,
diff --git a/ltcf-cxx.sh b/ltcf-cxx.sh
index 29f8ffe5d95023d77ec449a33232ff5afc425403..5d7d87770abafab7385ece3ad4b82158390cb177 100644
--- a/ltcf-cxx.sh
+++ b/ltcf-cxx.sh
@@ -196,8 +196,8 @@ case $host_os in
         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
         # Warning - without using the other run time loading flags, -berok will
         #           link without error, but may produce a broken library.
-        no_undefined_flag='${wl}-bnoerok'
-        allow_undefined_flag='${wl}-berok'
+        no_undefined_flag=' ${wl}-bnoerok'
+        allow_undefined_flag=' ${wl}-berok'
         # -bexpall does not export symbols beginning with underscore (_)
         always_export_symbols=yes
         # Exported symbols can be pulled into shared objects from archives