diff --git a/Setup.hs b/Setup.hs
--- a/Setup.hs
+++ b/Setup.hs
@@ -19,7 +19,8 @@
                                         b <- canUseAesIntrinsicsFlag cc
                                         let newWithPrograms1 = userSpecifyArgs "gcc" aesArgs (withPrograms lbi)
                                             newWithPrograms  = userSpecifyArgs "ghc" aesArgsHC newWithPrograms1
-                                        buildHook simpleUserHooks pd (lbi {withPrograms = newWithPrograms }) uh bf
+                                            lbiNew = if b then (lbi {withPrograms = newWithPrograms }) else lbi
+                                        buildHook simpleUserHooks pd lbiNew uh bf
                       }
 
 aesArgs :: [String]
diff --git a/cipher-aes128.cabal b/cipher-aes128.cabal
--- a/cipher-aes128.cabal
+++ b/cipher-aes128.cabal
@@ -2,7 +2,7 @@
 -- documentation, see http://haskell.org/cabal/users-guide/
 
 name:                cipher-aes128
-version:             0.2.2
+version:             0.2.3
 synopsis:            AES128 using AES-NI when available.
 description:         AES128 with crypto-api instances and a trampoline between Vincent Hanquez's C-based and x86 NI-based AES.  Patches welcome to add additional high-performance backends (ARM?)
 license:             BSD3
