-# Copyright (C) 2016 Free Software Foundation, Inc.
+# Copyright (C) 2016-2017 Free Software Foundation, Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
set executable ${testfile}
if { [build_executable ${testfile}.exp $executable $srcfile \
- [list debug pthreads "additional_flags=-fPIE -pie"]] } {
+ [list debug pthreads "additional_flags=-fPIE" "ldflags=-pie"]] } {
return -1
}